Php stock market

The S&P 500 is a stock market index containing the stocks of 500 large corporations. Your task is to display market performance of a selected list of S&P 500 corporations.

Part 1: Write a script to perform the following

Date, Open, High, Low, Close, Volume, Adj Close

Display the following data:

The difference between the High and Low values and difference between Open and Close values of each date.
The greatest and smallest difference between High and Low values in the 3rd quarter.
The greatest and smallest difference between Open and Close values in the 3rd quarter.
Part 2

Create a webpage that displays a drop-down menu to select a stock symbol. The possible values are AAPL (Appel), ADBE (Adobe), AMZN (Amozon), CSCO (Cisco), DELL, FB (Facebook), GOOG (Google), INTC (Intel), MSFT (Microsoft), NVDA (NVIDIA), ORCL (Oracle), QCOM, (Qualcom), and YHOO (Yhaoo).

Include a submit button to send the selected stock symbol to a script. The script should read the appropriate data file and display the same information as in part 1 for the selected stock symbol.

Following is a list of data files:

AAPL http://cs.uww.edu/data/stocks/AAPL.csv

ADBE http://cs.uww.edu/data/stocks/ADBE.csv

CSCO http://cs.uww.edu/data/stocks/CSCO.csv

DELL http://cs.uww.edu/data/stocks/DELL.csv

FB http://cs.uww.edu/data/stocks/FB.csv

GOOG http://cs.uww.edu/data/stocks/GOOG.csv

INTC http://cs.uww.edu/data/stocks/INTC.csv

MSFT http://cs.uww.edu/data/stocks/MSFT.csv

ORCL http://cs.uww.edu/data/stocks/ORCL.csv

QCOM http://cs.uww.edu/data/stocks/QCOM.csv

YHOO http://cs.uww.edu/data/stocks/YHOO.csv

Hint: In part 1, use a function that takes a file name as input and then displays the required data. Then the same function can be used to complete part 2.

so, what is your question?

This is a place to asks questions about a script you’re having trouble with, not a place to have you homework done for you. Besides, how will you ever learn if someone else does the work for you?

The question is, “Who will do my homework for me with no offer of compensation”. I for one am not going to approve this post.

Sponsor our Newsletter | Privacy Policy | Terms of Service