Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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:
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.128125Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started