Create class saving account .use a static variable annual interest rate to store the annual interest rate for all account holders.

Category: Engineering

Create class saving account .use a static variable annual interest rate to store the annual interest rate for all account holders. Each object of this class contains a private instance variable saving balance indicating the amount saver currently has on deposit. private method calculate monthly interest by multiplying the saving balance by annual interest rate divided by 12.this interest should be added to saving balance provide a static method modify interest rate that sets the annual interest to a next value. Write a program in c++ to test class saving account .instantiate two saving account object saver1 and saver 2 with a balance of $2000 and $3000 respectively. set annual interest rate to 4% then calculate the monthly interest and print the next balance for both savers. Then set the annual interest rate 5%.Calculate the next month interest and print the next balance for both savers.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Pay Someone To Write Essay