Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Other source in ebook
Title: saving-account Download
 Description: H12 Create a SavingsAccountclass. Use a staticdata member to store theannualInterestRateto store theannual interest rate for each of the savers. Each member of the class contains a privatedata member savingsBalanceindicating the amount the saver currently has on deposit. Provide a member function calculateMonthlyInterestmember function that calculates the monthly interest by multiplying the balancebyannualInterestRatedivided by 12 this interest should be added to savingsBalance. Provide a staticmember function modifyInterestRatethat sets the static annualInterestRateto a new value. Write adriver program to test class SavingsAccount. Instantiate two different objects of class SavingsAccount,saver1and saver2, with balances of $2000.00 and $3000.00, respectively. Set annualInterestRateto 3percent, then calculate the monthly interest and print the new balances for each of the savers. Then set theannualInterestRateto 4 percent, calculate the next month’s interest and print the new ba
 Downloaders recently: [More information of uploader 张国]
 To Search:
File list (Check if you may need any files):
 

saving account
..............\main.cpp
..............\SavingAccount.cpp
..............\SavingAccount.h
    

CodeBus www.codebus.net