Ask Question
27 April, 04:08

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

+2
Answers (1)
  1. 27 April, 04:16
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers