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  

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

1 Expert Approved Answer
Step: 1 Unlock

The provided image contains instructions for creating a program that calculates the future value of ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!