Create class CSavingsAccount.
Use a Shared class variable to store the mAnnualInterestRate for all account holders.
Each object of the class contains a Private instance variable mSavingsBalance indicating the amount the saver currently has on deposit. Provide method CalculateMonthlyInterest to calculate the monthly interest by multiplying the mSavingsBalance by AnnualInterestRate divided by 12; this interest should be added to mSavingsBalance.
Provide a Shared method ModifyInterestRate that sets the mAnnualInterestRate to a new value. Write a program to test class CSavingsAccount. Instantiate two CSavingsAccount objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively.
Set CAnnualInterestRate to 4%, then calculate the monthly interest and print the new balances for each of the savers. Then set the mAnnualInterestRate to 5% and calculate the next month’s interest and print the new balances for each of the savers.
Write a program demonstrating that a method with its own Try block does not have to Catch every possible exception that occurs within the Try block. Some exceptions can slip through to, and be handled in, other scopes.