Question: Create a program that prompts the user for an initial investment amount, annual interest rate (in percentage), and number of years. Calculate and print
Create a program that prompts the user for an initial investment amount, annual interest rate (in percentage), and number of years. Calculate and print the future value of the investment using the formula: FutureValue=Investment x (1+InterestRate/100) x Years Ensure the output is rounded to two decimal places. Sample Input/Output: Enter initial investment amount: 1000 Enter annual interest rate:5 Enter number of years:10 Future value of the investment: $1628.89
Step by Step Solution
3.39 Rating (168 Votes )
There are 3 Steps involved in it
The provided image contains instructions for creating a program that calculates the future value of ... View full answer
Get step-by-step solutions from verified subject matter experts
