(Financial application: compute the future investment value) Write a function that computes future investment value at a given int erest rate for a specified number of years. The future investment is determined using the formula in Programming Exercise.
Use the following function header:
double futureInvestmentVa1ue(double investmentAmount,double monthlylnterestRate,int years)
For example, futureInvestmentVa1ue(10000, 0.05/12, 5) returns 12833.59.
Write a test program that prompts the user to enter the investment amount (e.g., 1000) and the int erest rate (e.g., 9%) and print s a table that displays future value for the years from 1 to 30, as shown below:

(Financial application:future investment value) Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula:
![]()
For example, if you enter amount 1000 , annual interest rate 3.25% , and number of years 1 , the future investment value is 1032.98. Here is a sample run:

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.