0

How to write this kind of program in c++, python or any other language

Write a program that calculates how much money you’ll end up with if you invest an amount of money at a fixed interest rate, compounded yearly. Have the user furnish the initial amount, the number of years, and the yearly interest rate in percent. Some interac- tion with the program might look like this: Enter initial amount: 3000 Enter number of years: 10 Enter interest rate (percent per year): 5.5 At the end of 10 years, you will have 5124.43 dollars. the end of the first year you have 3000 + (3000 * 0.055), which is 3165. At the end of the second year you guys have 3165 + (3165 * 0.055), which is 3339.08.

28th Apr 2020, 6:09 AM
Hussain Ali
Hussain Ali - avatar
1 Answer