Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(Savings Account Class) Create a Savings Account class. Use a static data member annuallnterestRate to store the annual interest rate for each of the savers.
(Savings Account Class) Create a Savings Account class. Use a static data member annuallnterestRate to store the annual interest rate for each of the savers. Each member of the class contains a private data member savings Balance indicating the amount the saver currently has on deposit. Provide member function calculate MonthlyInterest that calculates the monthly interest by multiplying the balance by annuallnterestRate divided by 12; this interest should be added to savings Balance. Provide a static member function modifyInterestRate that sets the static annuallnterestRate to a new value. Write a driver program to test class Savings Account. Instantiate two different objects of class SavingsAccount, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Set the annuallnterestRate to 3 percent. Then calculate the monthly interest and print the new balances for each of the savers. Then set the annuallnterestRate to 4 percent, calculate the next month's interest and print the new balances for each of the savers. (Savings Account Class) Create a SavingsAccount class. Use a static data member annuallnterestRate to store the annual interest rate for each of the savers. Each member of the class contains a private data member savings Balance indicating the amount the saver currently has on deposit. Provide member function calculateMonthlyInterest that calculates the monthly interest by multiplying the balance by annuallnterestRate divided by 12; this interest should be added to savings Balance. Provide a static member function modifyInterestRate that sets the static annuallnterestRate to a new value. Write a driver program to test class SavingsAccount. Instantiate two different objects of class Savings Account, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Set the annuallnterestRate to 3 percent. Then calculate the monthly interest and print the new balances for each of the savers. Then set the annuallnterestRate to 4 percent, calculate the next month's interest and print the new balances for each of the savers
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started