Aunt Agatha left you some cash. You decide to do the boring thing and deposit the money in a savings account. In this assignment write a program that calculates how much money would be in the account as it accrues interest year after year.
The program should take as input:
- The amount of money Aunt Agatha left you, i.e., the starting balance in the account.
- The annual interest rate.
- The number of years to save.
The program should output the amount of money that you’d have in each of the years saved at the given annual rate should interest be compounded either yearly, monthly, or daily.