Question: by python: Part 1 For the first part of this lab, you will write a function (constantInvestment) that uses loops to calculate the value of

by python:

by python: Part 1 For the first part of this lab, you

will write a function (constantInvestment) that uses loops to calculate the value

Part 1 For the first part of this lab, you will write a function (constantInvestment) that uses loops to calculate the value of an annual investment (e.g. pension) with a constant growth rate over a period of years. The arguments of the function are: The original investment amount (before any annual principal: contributions or growth is applied) annualContrib: The amount (in dollars) contributed annually You can assume that the contribution is made as a lump sum at the first second of January 1st of each year, so that the maximum growth is achieved o The annual growth rate (e.g. 5% or 0.05) to be applied to growthRate: the principal + contributions years: . The number of years of investing >constantInvestment (0, 10000, 0.05, 5) 58019.128125

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!