Ask Question
18 January, 13:47

Write a program in Python that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula:and displays the future investment value using the following formula:futureInvestmentValue = investmentAmount * (1 + monthlyInterestRate) numberOfYears*12

+3
Answers (1)
  1. 18 January, 14:15
    0
    investmentAmount = float (input ("enter the investment amount: "))

    annualInterestRate = float (input ("enter the Annual Interest Rate: "))

    numYears = int (input ("Enter NUmber of Years: "))

    monthlyInterestRate = annualInterestRate/12

    futureInvestmentValue = investmentAmount * (1 + monthlyInterestRate) * (numYears*12)

    print ("The Future Investment Value is: ")

    print (futureInvestmentValue)

    Explanation:

    Using python programming language as required, we use the input function to prompt user for inputs for each of the variables.

    There is a conversion from the variable annualInterestRate to monthlyInterestRate before the formula for the futureInvestmentValue is applied
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program in Python that reads in investment amount, annual interest rate, and number of years, and displays the future investment ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers