Question
Must compile on Visual studio 2015
Programming language- C
Goals (Requirements): You will simulate a trading application. There will be two components: A simulation for the stock market, and a facility that will allow you to trade five stocks several times. It will also maintain the portfolio and balances of your stock and money Background We buy and sell stocks from the Stock Market. You can check the price of the stock before you place an order to buy or sell. If you place an order within a short period of time after that, it is very likely the the transaction will take place at that price Investors and traders hope to be able to buy stocks at a low price and sell at higher price so that they make a profit On the Stock Market, price of a stock fluctuates unpredictably. In this project you will simulate these price fluctuations using a random number generator To provide you with the service of buying and selling, the market charges a small fee for every traded. For the sake of simplification, we will ignore that fee in this project Preparation Create a mystocks.txt file that contains todays stock price for five stocks that you want to trade. Pick them from this list Example: my mystocks.txt looks 1ike AMD 16.61 CLNE 2.92 FEYE 16.47 EXTR 8.61 FSLR 54.83 Watch if you are interested: https://ww.w.yQutube.com/watch2vzixE wB2uvOs
media%2F508%2F5087be02-8ee7-4250-ba87-e4
media%2Ffc8%2Ffc884ec2-e254-4c97-a394-2d
media%2Fdea%2Fdea3b76a-cb15-4a6c-923b-7a
media%2F739%2F7397700f-7515-4835-b8f8-da
media%2F1a3%2F1a3d8ec5-02ed-4445-acef-f6
media%2F337%2F33798936-2c05-4992-8c24-d0
media%2Fd57%2Fd579f59b-1c98-44d5-9860-c1
media%2F9fe%2F9fe1c0ea-1861-489a-babe-9c
media%2F074%2F074f8713-bebe-4133-a277-fb
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The second last block of code (the testing section) has an assignment error for pStockPrice.

The price saved in the variable myStocks needs to be rechecked.

Add a comment
Know the answer?
Add Answer to:
Must compile on Visual studio 2015 Programming language- C Goals (Requirements): You will simulate a trading...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (C Programming language, not C++ and MUST Compile) Companies and people often buy and sell stocks....

    (C Programming language, not C++ and MUST Compile) Companies and people often buy and sell stocks. Often they buy the same stock for different prices at different times. Say one owns 1000 shares a certain stock (such as Checkpoint), one may have bought the stock in amounts of 100 shares over 10 different times with 10 different prices. We will analyze two different methods of accounting, FIFO and LIFO accounting used for determining the “cost” of a stock. This is...

  • You are the CFO of Happy Valley Co.,Ltd., there is a potential project for you to...

    You are the CFO of Happy Valley Co.,Ltd., there is a potential project for you to invest in: acquiring (buying) another firm, HappyParadise Co.,Ltd., in year 2010. You want to estimate the NPV of this investment. (1) The first step is to estimate the Free Cash Flow of HappyParadise for year 2010. 17 pts a. You get the income statement for 2010 of HappyParadise as below: Income Statement for Year 2010 ($ million) Net Sales Cost of Goods Sold Depreciation...

  • Can you check my answers? here is my answer to this question Im not sure regarding...

    Can you check my answers? here is my answer to this question Im not sure regarding the calculations I had another tutor answer but I can't seem to respond to check my work or find out what or how mine are different technology in the market. Variable production costs are estimated to be $45,000 per unit for the entire life of the project. ACC00152 Business Financet You are working in the finance department of Space Sky Flight Ltd (SSF). The...

  • Please read the article and answer about questions. You and the Law Business and law are...

    Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT