Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please using python to solve it GameStop Function Name: buyStocks() Parameters: currentPrice ( float), finalPrice ( float), growth ( float) Returns: days (int) Description: You

image

please using python to solve it

GameStop Function Name: buyStocks() Parameters: currentPrice ( float), finalPrice ( float), growth ( float) Returns: days (int) Description: You are trying to make lots of cash fast (as one does), so you have decided to pur- chase a bunch of stocks! You've gotten some 'insider' intel that the value of GameStop is going to go down before the end of the year, so you're going to purchase the stock during the dip. Write a function that takes in the current price of the stock, the final price that you want to buy at, and the daily growth rate of the stock given as a percent. Return how many days it will take for GameStop to reach or exceed the final price. Note: The growth rate will be negative, but the current price and final price will be positive. >>> buyStocks (75.83, 10, -5.85) 34 >>> buyStocks (5025, 450, -2.3) 104

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

Answer def buyStocks currentPrice finalPrice growth defining the fu... 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

Data Analysis And Decision Making

Authors: Christian Albright, Wayne Winston, Christopher Zappe

4th Edition

538476125, 978-0538476126

More Books

Students also viewed these Programming questions

Question

Rizzoli goal inc produces and sells hockey equipment

Answered: 1 week ago

Question

Describe how the neo-Freudians modified Freuds theory.

Answered: 1 week ago