basic assignment

Many banks and savings and loan institution compute interest on a daily basis. On a balance by $1000 with an interest rate of 6%, the interest earned in one day is 0.06 multiplied by 1000 and then divided by 365, because it is only for one day of a 365 day-year. This yield $0.16 in interest and so the resulting balance is $1000.16. The interest for the second day will be 0.06 multiplied by $1000.16 and then divided by 365. Write a program that takes three inputs: the amount of a deposit, the interest rate, and a duration in weeks. The program then calculates the account balance at the end of the duration specified. Also have the program output the total interest. The program should allow the user to repeat this calculation as often as the user desired.