0.968629 0.490255 10 0.118509 0.974630 12. Write an improved version of the futval.py program from Chapter 2. Your program will prompt the user for the amount of the investment, the annualized...

Python question
0.968629<br>0.490255<br>10<br>0.118509<br>0.974630<br>12. Write an improved version of the futval.py program from Chapter 2.<br>Your program will prompt the user for the amount of the investment, the<br>annualized interest rate, and the number of years of the investment. The<br>program will then output a nicely formatted table that tracks the value of<br>the investment year by year. Your output might look something like this:<br>Year<br>Value<br>$2000.00<br>$2200.00<br>$2420.00<br>3.<br>$2662.00<br>4<br>$2928.20<br>$3221.02<br>6.<br>$3542.12<br>$3897.43<br>O 1 2N<br>

Extracted text: 0.968629 0.490255 10 0.118509 0.974630 12. Write an improved version of the futval.py program from Chapter 2. Your program will prompt the user for the amount of the investment, the annualized interest rate, and the number of years of the investment. The program will then output a nicely formatted table that tracks the value of the investment year by year. Your output might look something like this: Year Value $2000.00 $2200.00 $2420.00 3. $2662.00 4 $2928.20 $3221.02 6. $3542.12 $3897.43 O 1 2N
# futval.py<br>#:<br>A program to compute the value of an investment<br>carried 10 years into the future<br>def main():<br>print (

Extracted text: # futval.py #: A program to compute the value of an investment carried 10 years into the future def main(): print ("This program calculates the future value") print ("of a 10-year investment.") eval(input("Enter the initial principal: ") principal apr = eval(input("Enter the annual interest rate: ")) for i in range(10): principal principal * (1 + apr) print ("The value in 10 years is:", principal) main() Notice that I have added a few blank lines to separate the input, process PrtScn F8 Home F9 End F10 PgUp F11 212 &

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here