Question: dy Tools 3 ss Tips ss Tips ack CENGAGE MINDTAP Optional Activity 1: AppInvest return on investment function What you need to know 0

dy Tools 3  ss Tips ess Tips ack CENGAGE MINDTAP Optional Activity 1: AppInvest return on investment function

dy Tools 3 ss Tips ss Tips ack CENGAGE MINDTAP Optional Activity 1: AppInvest return on investment function What you need to know 0 YE Latil The standard gain margin is 0.1% per month, plus 1% each time the amount surpasses increments of 1 million dollars. For example: If the amount invested is $5,000,000 ($5 million), then the gain margin would be: 0.1% + 5% = 5.1%. For this assessment, you will write a function that for a given invested amount will return that amount plus the calculated investment gains. If the given amount is greater than the $1 million threshold, the app will need to increase the rate of return 1% for every million dollars invested plus the original rate of 0.1%. Finally, you will implement the functionality to estimate (forecast) the return on investment over a time period. In order for you to start this project, we will provide a function template. that can be followed to solve this challenge. The code block below is a sample way that this project could be structured. O O #global variable def calculate_gains (amount_inv=0.0): """ Calculating the return gains of an investment. #base amount gain margin if amount_inv > 1000: # check whether the invested amount is greater than #gather the value of the division # update the gain_margin by the multiplier mo # calculate the total amount of gains 2/5 > FILETREE -/workspace calculate gains.py E Q Search calculate gains_ov..... functions optional... calculate_gains.py X calculate gains_ov.... X 1 # global variable. 2 3 4 def calculate_gains (amount_inv=0.0): 5 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 """ Calculating the return gains of an investment. #base amount gain margin if amount_inv > 1000: # check whether the invested amount is greater than the multiplier amo #gather the value of the division. # update the gain_margin by the multiplier mod # calculate the total amount of gains # calculate the total amount plus the gain margin # return the gains, the full amount and the gain margin > Terminal workspace S

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The image contains text describing an exercise related to an investment return calculation alon... View full answer

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 Programming Questions!