please using python to solve it GameStop Function Name: buyStocks() Parameters: currentPrice ( float), finalPrice ( float),
Fantastic news! We've Found the answer you've been seeking!
Question:
please using python to solve it
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
Answer def buyStocks currentPrice finalPrice growth defining the fu... View the full answer
Related Book For
Data Analysis and Decision Making
ISBN: 978-0538476126
4th edition
Authors: Christian Albright, Wayne Winston, Christopher Zappe
Posted Date:
Students also viewed these programming questions
-
Using Python Please Assignment 3 - Blackjack BACKGROUND In this assignment, you will continue developing your ability to use conditional statements and loops to control the flow of your programs....
-
Solve using Python spyder. The airline_delay on the right is just a snapshot of the file. explain in steps. Origin Airport: LGA STEP 1 Flights from LGA was on time 5033 times. Flights from LGA was...
-
Solve using lisp program not python or java. ( lisp emacs ) Write a function called filter-seq that takes a sequences (a string) and an alphabet a (a string), and generates a result sequence (a...
-
Tonys mother is extremely proud that her son will graduate college in a few months. She expresses concern, however, when Tony tells her that following graduation, he plans to move to Las Vegas to...
-
Why are attributions important determinants of behavior in organizations?
-
How is the eventual salvage value of new equipment being purchased as part of a capital project treated when calculating the simple rate of return?
-
Which of the following is false? a. Including some nonmonetary measures of performance in a budget is not likely to be advantageous b. If a key aspect of a company's success is high quality,...
-
1. Joshua Vermier of Sacramento, California, received a raise after his first year on the job to $43,800 from his initial salary of $42,000. What was Joshuas raise stated as a percentage? Inflation...
-
Builtrite had sales of $600,000 and COGS of $200,000. In addition, operating expenses were calculated at 30% of sales. Interest expense was $20,000. Builtrite also received dividends of $30,000 and...
-
Complete Form 941 for the 4th quarter for TCLH Industries (which is located at 202 Whitmore Avenue, Durham, NC 27701; Employer Identification #44-4444444). Assume that all necessary deposits were...
-
If you place a stop-loss order to sell at $52.00 on a stock currently selling for $55.50 per share, what is likely to be the minimum loss you will experience on 100 shares if the stock price rapidly...
-
Why is the nominal yield duration generally not comparable to the real yield duration?
-
What role do Eurodollar futures play in the valuation of a swap contract?
-
What is extraterritoriality?
-
Give two interpretations of an interest rate swap and explain why an interest rate swap can be interpreted in each way.
-
Describe the four different types of legal systems with which international businesses must deal.
-
Advocate for and apply skills in the areas of diversity, equity, and inclusion. Demonstrate how to effectively engage with conflict. Discuss how to recognize the dignity and worth of all people....
-
Wilsons Auto Repair ended 2011 with Accounts Receivable of $85,000 and a credit balance in Allowance for Uncollectible Accounts balance of $11,000. During 2012, Wilsons Auto Repair had the following...
-
Suppose that two dice are tossed. For each die, it is equally likely that 1, 2, 3, 4, 5, or 6 dots will turn up. Let S be the sum of the two dice. a. What is the probability that S will be 5 or 7? b....
-
The file P11.34.xlsx contains data on the top 40 golfers in 2008. This was the year when Tiger Woods won the U.S. Open in June and then had year-ending surgery directly afterward. Using all 40...
-
Let X be normally distributed with a given mean and standard deviation. Sometimes you want to find two values a and b such that P(a < X < b) is equal to some specific probability such as 0.90 or...
-
Purchasing power parity You are given the data in Table 3.17 on prices in local currency in the United States, Mexico, and England. a. What are the rates of currency exchange suggested by the...
-
HG Lang Designs operates an exclusive bridal boutique in Manhattan. All gowns are designed by Lang but are manufactured by various small firms in France and Italy. The following financial information...
-
HG Lang Designs operates an exclusive bridal boutique in Manhattan. All gowns are designed by Lang but are manufactured by various small firms in France and Italy. The following financial information...
Study smarter with the SolutionInn App