Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The original program was def main(): Print(this program calculates the future value) Print(of a ten year investment ) Principal =eval(input(enter the initial principal: )) Apr=

The original program was
def main():
Print(this program calculates the future value)
Print(of a ten year investment )
Principal =eval(input(enter the initial 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()
image text in transcribed
12. Write an improved version of the future value program from Chapter 2, Your program will prompt the user for the amount of the investment, the 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 annualized Year Value 0 $2000.00 1 $2200.00 2 $2420.00 3 $2662.00 4 $2928.20 5 $3221.02 6 $3542.12 $3897.43

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago