Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

An amount of money P is invested in an account where interest is compounded at the end of the period. The future worth Fyielded at

An amount of money P is invested in an account where interest is compounded at the end of the period. The future worth Fyielded at an interest rate i after n periods may be determined by the following formula:
F=P(1+i)n
Develop a Python function that calculates the future worth of an investment for each year from 1 to n. The input to the function should include the initial investment, P, the interest rate, i(as a decimal fraction, not a percentage), and the number of periods, n, over which the future worth is to be calculated. Note: If the periods are years, then the interest rate must be per year, not month. The output should consist of a table with headings and columns for periods and future worth. Test the program with P=120,000,i=0.07 per year, and n=10 years. Complete the following table.
\table[[Period,Future Worth],[1,128,400],[2,],[3,147,005],[4,],[5,168,306],[6,],[7,192,694],[8,],[9,220,615],[10,]]
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions