Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

The image contains text describing an exercise related to an investment return calculation alon... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago