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

GameStop Function Name: buyStocks() Parameters: currentPrice ( float), finalPrice ( float), growth

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

1 Expert Approved Answer
Step: 1 Unlock

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