Answered step by step
Verified Expert Solution
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
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...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