Ask Question
29 September, 20:12

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. 29 September, 20:14
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers