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.
Recently Asked Questions
- Pop , Inc . , purchases all of the outstanding stock of Son Corporation , on January 2 , 2011 , for P310,000 . Equipment with a 10-year life was undervalued on
- P Corporation purchased equipment with a book value of P80,000 from S Company , its 75 percent owned subsidiary , for P100,000 on January 1 , 20x8 , P
- What is the most effective way to ensure information system availability ?