ANTICO 1 Day 2 3 4 5 6 7 8 9 10 11 12 13 14...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
ANTICO 1 Day 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 A 4 ▶ 1 WNH 244.69 2 243.13 233.03 231.43 5 237.72 6 240.05 7 244.53 244.74 3 4 L $&588E NOGLWNHO O NOUA WNTOONSGFWNFS 600 10 247.89 256.96 257.89 259.75 261.97 256.95 253.5 255.58 254.68 18 299.68 328.13 327.71 316.22 315.01 314.92 24 313.31 317.47 317.22 326.58 335.54 29 337.14 345.09 349.93 346.11 349.35 352.17 349.99 359.52 352.22 354.83 333.04 336.34 328.92 42 331.29 43 329.94 44 334.87 11 12 13 14 15 16 17 19 20 21 22 23 25 26 27 28 30 31 32 33 34 35 36 37 38 39 B 40 Cost 41 Sheet1 C + D Tesla's stock prices over 44 days are tabulated in the "TeslaStock.xlsx" spreadsheet (located on Canvas). Suppose you own an arbitrary number of shares at the start of the 44-day period (startShares). You buy 100 shares every day the price is below an arbitrary lower price threshold (buyPrice) and you sell 100 shares every day the price is above an arbitrary upper price threshold (sellPrice). Compute the following: 1) The amount you spend from buying shares. 2) The amount you earn from selling shares. 3) The total number of shares you own after the 44th day. You are encouraged, but not required, to plot the data. To test your code, use the following parameters (this is the test case used in Test 1): startShares = 1000; buyPrice = 250; sellPrice = 350; Remember to generalize your code to accept any value of these three parameters. Fun fact: These are Tesla's actual stock prices! It's never too early to start investing! ANTICO 1 Day 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 A 4 ▶ 1 WNH 244.69 2 243.13 233.03 231.43 5 237.72 6 240.05 7 244.53 244.74 3 4 L $&588E NOGLWNHO O NOUA WNTOONSGFWNFS 600 10 247.89 256.96 257.89 259.75 261.97 256.95 253.5 255.58 254.68 18 299.68 328.13 327.71 316.22 315.01 314.92 24 313.31 317.47 317.22 326.58 335.54 29 337.14 345.09 349.93 346.11 349.35 352.17 349.99 359.52 352.22 354.83 333.04 336.34 328.92 42 331.29 43 329.94 44 334.87 11 12 13 14 15 16 17 19 20 21 22 23 25 26 27 28 30 31 32 33 34 35 36 37 38 39 B 40 Cost 41 Sheet1 C + D Tesla's stock prices over 44 days are tabulated in the "TeslaStock.xlsx" spreadsheet (located on Canvas). Suppose you own an arbitrary number of shares at the start of the 44-day period (startShares). You buy 100 shares every day the price is below an arbitrary lower price threshold (buyPrice) and you sell 100 shares every day the price is above an arbitrary upper price threshold (sellPrice). Compute the following: 1) The amount you spend from buying shares. 2) The amount you earn from selling shares. 3) The total number of shares you own after the 44th day. You are encouraged, but not required, to plot the data. To test your code, use the following parameters (this is the test case used in Test 1): startShares = 1000; buyPrice = 250; sellPrice = 350; Remember to generalize your code to accept any value of these three parameters. Fun fact: These are Tesla's actual stock prices! It's never too early to start investing!
Expert Answer:
Related Book For
Introduction to Corporate Finance What Companies Do
ISBN: 978-1111222284
3rd edition
Authors: John Graham, Scott Smart
Posted Date:
Students also viewed these marketing questions
-
Suppose you own an American call option on Pfizer stock. Pfizer stock has gone up in value considerably since you bought the option, so your investment has been profitable. There is still one month...
-
Suppose you own an expensive car and purchase auto insurance. This insurance has a $1000 deductible, so that if you have an accident and the damage is less than $1000, you pay for it out of your...
-
Suppose you own an outdoor recreation company and you want to purchase all-terrain vehicles (ATVs) for your summer business and snowmobiles for your winter business. Your budget for new vehicles this...
-
What requirements must be met to deduct a trade or business expense? an expense related to the production of income?
-
Paden, who is single and has been employed as an accountant for 27 years with Harper, Inc., lost his job due to company downsizing. His last day of employment is July 31, 2015, and Harper provides a...
-
Confound a 3 design in three blocks using the AB 2 CD component of the four-factor interaction.
-
What are the types of electronic banking services that are available?
-
Direct materials and direct manufacturing labor variances. GloriaDee, Inc., designs and manufactures T-shirts. It sells its T-shirts to brand-name clothes retailers in lots of one dozen. GloriaDees...
-
Accounting. As a result of their divorce, Bill agreed to pay alimony to Caitlin of $21,000 per year. The payments are to cease in the event of Bill's or Caitlin's death or in the event of Caitlin's...
-
The MFG Corporation is planning to produce and market three different products. Let x1, x2, and x3 denote the number of units of the three respective products to be produced. The preliminary...
-
One of the best-known franchise operations in the world is McDonalds, and in recent years, the company has been working to expand its international presence. But emerging market fast-food companies...
-
How reliable is a bank reconciliation in terms of audit evidence? Briefly defend your answer.
-
Using the internet, find salary schedules for two local governments, two state governments, and two nonprofit organizations. What are the similarities and differences in salary schedules and...
-
Identify the five types of information included in a standard bank confirmation.
-
What precautions should be taken by the auditor in (a) counting cash on hand and (b) confirming bank balances?
-
Visit the American Society for Training and Development, the Society for Human Resource Management, and the International Personnel Management Association-HR websites. What training topics are being...
-
do it on arena and show the model Lathe and Sawing Machine A production line of metal parts uses "Bar Stock", raw purified metal, and prepares them for manufacturing by sending them to two different...
-
Why can wastewater treatment requirements in Hawaii be less stringent than those in most locations on the U.S. mainland?
-
You are quoted the following series of exchange rates for the U.S. dollar ($), the Canadian dollar (C$), and the British pound (): $0.6000/C$ ........ C$1.6667/$ $1.2500/ ........ 0.8000/$ C$2.5000/...
-
Intel Corp. is a firm that uses almost no debt and had a total market capitalization of about $179 billion in April 2004. Assume that Intel faces a 35 percent tax rate on corporate earnings. Ignore...
-
G. Welch purchases a corporate bond that was originally issued for $1,000 several years ago. The bond has four years remaining until it matures, the market price now is $1,054.45, and the...
-
\(\sqrt{5,472}\) Simplify the square root by expressing it in lowest terms.
-
\(4 \sqrt{3}+2 \sqrt{3}\) Perform the arithmetic operations without a calculator, if possible. If it is not possible, state why.
-
\(\sqrt{3,240}\) Simplify the square root by expressing it in lowest terms.
Study smarter with the SolutionInn App