Question: code? A certain amount variable name Principal) of money and a certain annual rate in variable name AnnualRate) of compound interest is input to the

A certain amount variable name Principal) of money and a certain annual rate in variable name AnnualRate) of compound interest is input to the program The interest is compounded every 3 months. For example if Rs 100 is invested at 6% per annum after 3 months it will become (100+100"6/100)*(3/12) -Rs 101.5 since there are 12 months in a year. After another 3 months it will be 101.5.101.5(6/100)*(3/12)Rs 103.02. Find the minimum time in terms of years(variable name Years) and months(variable Name Months after which the amount(variable name Amount is doubled. Print Amount at the end of this period rounded of to 2 decimal places (Copy the print statements provided at the end to know the principal and rate of interest provided in the test cases) Test case Input Amount at beginning =Rs 100 Annual Rate of interest=6% Output Time after which the amount exceeds Rs 200= 11 years 9 months Amount after 11 years 9 months= R$201.33(rounded off to 2 decimal places) The first 2 lines and the last 4 lines of code are as follows Principaisint(input()) Annulate-float(input) Enter your code here) AnnualRate=float(input()) (Enter your code here) print("Principal :", Principal) print("Annual rate : ", AnnualRate) print(Years," Years ", Months," Months") print("{: .2f}".format(Amount))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
