Richard P.

asked • 04/12/24

(Financial application: compute the future investment value)

Write a function that computes the future investment value at a given interest rate for a specified number of years. The future investment is determined using the formula in Programming Exercise 2.19 in Chapter 2 Programming Exercise from the Book.

Use the following function header:

def futureInvestmentValue(investmentAmount,

monthlyInterestRate, years):

For example, futureInvestmentValue(10000, 0.05/12, 5) returns 12833.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.

1 Expert Answer

By:

Iordan G. answered • 04/17/24

Tutor
5 (94)

Machine learning researcher and data scientist using Python

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.