Write a function that computes a future investment value at a given interest rate for a specified number of years. The future investment is determined using the formula in Exercise 2.19.Use the following function header:def futureInvestmentValue(investmentAmount, monthlyInterestRate, years):For example, futureInvestmentValue(10000, 0.05/12, 5) returns12833.59.Write a test program that prompts the user to enter the investment amount and the annual interest rate in percent and prints a table that displays the future value for the years from 1 to 30.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here