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...
-
Suppose that call options on ExxonMobil stock with time to expiration 3 months and strike price $60 are selling at an implied volatility of 30%. ExxonMobil stock currently is $60 per share, and the...
-
Determine the force in member CD of the truss. AE is constant. 4 m 3 m V9 kN l0006 4 m 4 m
-
What the differences are between a till tap, a keeper, and a bank levy?
-
1. What are the communication errors Samuel made? 2. What should Angelique do when she gets the phone call from Penny asking her to come to Dallas to meet with Samuel? 3. Is there anything more...
-
Accounting break-even Unit price Unit variable cost Fixed costs Depreciation 201,860 $52 $33 $1,250,000 ? What is the value of depreciation? Please note: Do not use dollar sign, commas, or decimal...
-
Alice J. and Bruce M. Byrd are married taxpayers who file a joint return. Their Social Security numbers are 123-45-6789 and 111-11-1111, respectively. Alice's birthday is September 21, 1966, and...
-
Joe loves explosives and begins his own demolition company, Joe the Destroyer. He doesnt file any paperwork to begin his company because his friend told him that he didnt need to file anything to...
-
How do advancements in data analytics and machine learning algorithms empower market analysts to extract actionable insights from vast datasets, fostering more informed decision-making processes ?
-
Could you elaborate on the implications of regulatory compliance frameworks, such as GDPR in Europe or Dodd-Frank in the United States, on market entry barriers and competitive positioning for...
-
Four coal mills independently produce sound pressure levels of 94, 94, 96, 93 dBA, respectively. A power plant operator is inspecting the coal mills when they are operating at the same time. What is...
-
why do singer and waiter say that returning to its roots is the immigration policy and what causes this return?
-
Q1. Following Figure shows the VTC of gates M M M M M Vout 12V 0.2V M Vou' 12V- respectively. Vout 1.2V 0.3V M 0.2V 0.7V 0.2V IV 0.2V IV Vin I. Draw the butterfly diagram of the gates M, M2 and M3....
-
Assume the price of soybeans is $10 per bushel. To maximize profits, a competitive firm selling soybeans will: produce soybeans up to the point at which average variable cost equals $10/bu. adjust...
-
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...
-
Preparing adjusting and subsequent journal entries Natsu Co. records prepaid expenses in balance sheet accounts. Natsus annual accounting period ends on October 31, 2008. The following information...
-
Preparing adjusting entries, adjusted trial balance, and financial statements Following is the unadjusted trial balance for Augustus Institute as of December 31, 2008, which initially records prepaid...
-
Preparing financial statements from the adjusted trial balance The adjusted trial balance for Speedy Courier as of December 31, 2008, follows. Required Use the information in the adjusted trial...
Study smarter with the SolutionInn App