A static data member annualinterestrate that stores the


A static data member annualInterestRate that stores the annual interest rate for each of the savers.
A private data member savingsBalance that indicates the amount the saver currently has on deposit.
A member function named calculateMonthlyInterest that calculates the monthly interest by multiplying the balance by annualInterestRate divided by 12; this interest should then be added to savingsBalance.
A static member function modifyInterestRate that sets the static annualInterestRate to a new value
You will then write a driver program to test the class SavingsAccount. The test driver program should perform the following tasks:

Instantiate two different objects of class SavingsAccount, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively.
Set the annualInterestRate to 3 percent.
Calculate the monthly interest and print the new balances for each saver.
Set the annualInterestRate to 4 percent, calculate the next month's interest, and then print the new balances for each of the savers.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: A static data member annualinterestrate that stores the
Reference No:- TGS0778163

Expected delivery within 24 Hours