文件名称:saving
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个驱动程序来测试SavingAccount类。实例化SavingAccount类的两个对象saver1和saver2,余额分别为2000.00和3000.00。将annualInterestRate设置为3 ,然后计算月利率并打印每个存款者的新余额。接着再将annualInterestRate设置为4 ,计算下一个月的利息并打印每个存款者的新余额。
示例测试程序请参看给出的代码。
-Write a driver program to test SavingAccount class. SavingAccount class instantiated two objects saver1 and saver2, the balance of 2000.00 and 3000.00, respectively. The annualInterestRate set to 3 , and then calculate the monthly interest and print the new balance of each depositor. Then then annualInterestRate set to 4 next month' s interest calculation and print the new balance of each depositor. See sample test program code is given.
示例测试程序请参看给出的代码。
-Write a driver program to test SavingAccount class. SavingAccount class instantiated two objects saver1 and saver2, the balance of 2000.00 and 3000.00, respectively. The annualInterestRate set to 3 , and then calculate the monthly interest and print the new balance of each depositor. Then then annualInterestRate set to 4 next month' s interest calculation and print the new balance of each depositor. See sample test program code is given.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SavingAccount.h
savingaccounttest.cpp
savingaccounttest.cpp