Problem progr Mr Frodo received lots of money for his Birthday. Mr Frodo decided to put it in the bank. Mr Frodo is clever. He knows that his interest will compound monthly at a rate of 4.5 % p.a. Write a program that asks Mr Frodo how much he is investing, and for how long (in days), and prints the amount of money he 1 T will have after this amount of time. You should assume non-empty, integer inputs for both answers, and assume there are exactly 31 days in every month according to this bank. Your program should behave as follows How much money would you li ke to invest, Mr Frodo? 10 How many days would you like to invest this for? 10 After that time you will have: $10.0 How much money would you like to invest, Mr Frodo? 10 How many days would you 1ike to invest this for? 372 After that time you will have: $10.459398250405895 Sub You dom Compound interest W03 The formula for compound interest is: P=Px (1+” 12 where P, is the final amount, P is the initial amount, r is the interest rate per annum, and n is the number of accumulation periods (months for this problem) that have passed. For example, if you invest $100 for 1 year and one month (13 months) at a rate of 4 % per annum, the final amount would be: 100 x (1+0.04/12)13 104.42 ooo ooo0

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now