C++ program Stock Analysis

Cancelled Posted Oct 16, 2013 Paid on delivery
Cancelled Paid on delivery

In this program you will determine various statistics for 3 stocks. You are to read the stock history data for 3 stocks for the last 250 market days (approximately 1 year) into a 3 dimensinal array and then perform the calculations for various time periods. Your are to create a report similar to the following.

Output Details

Stock (example WMT) is stock ticker of a stock.

Average represents the average closing price of the stock over the specified time period.

Minimum represents the minimum of the daily low prices of the stock over the specified time period.

Maximum represents the maximum of the daily high prices of the stock over the specified time period.

Gain is the difference between the Close price at the end of the time period and Open Price when time period starts.

Av Gain is the average of the daily gains (Close - Open) over the specified time period.

Pct Gain is the Gain for the most recent date divided by the Average for the specified time period, expressed as a percent.

B/S/H is a buy/sell/hold recommendation for the stock. If the Pct Gain is greater than 10%, the recommendation is sell. If the Pct Gain is less than -10%, the recommendation is buy. Otherwise, it is hold.

Program Requirements

Use one 3 dimensional array to store the required data for 3 stocks for the last 250 market days.

Use another 1 dimensional array to store the stock market dates for the last 250 market days. The dates are to be stored as a single int. For example, "2013-08-23" should be stored as 20130813.

Your solution must contain at least 5 functions. In at least one function you must pass only a 2 dimensional array as a function argument.

Use current market data. Your final program run should contain the last market data that is available.

Use the stocks specified, Walmart (WMT), McDonalds (MCD), and Apple (AAPL).

Your analysis must contain the 7 market date spans (5, 10, 20, 50, 90, 100, and 200 days) shown in the Sample Output above and below.

Your analysis report must be written to a file. You will turn in a printed copy of the file.

File opens must be checked for successful open.

The report format must closely follow the sample output above. Dollar values, number alignment, percentage formats, and approximate spacing must be observed.

Download the stock history file from the website, [login to view URL] (where WMT is the stock ticker). You can obtain the MCD and AAPL stock history by changing the WMT in the URL to MCD or AAPL.

C++ Programming

Project ID: #5032278

About the project

2 proposals Remote project Active Oct 16, 2013

2 freelancers are bidding on average $213 for this job

Nahor714655838

hello , have you ever tried python ? i may propose this project for this , but still i can work it using c++ , am looking forward to hear from you .thanks

$231 USD in 4 days
(1 Review)
0.0
GSKiwi

Hi, I have a master's degree in mathematics and 20 years' experience developing scientific software in C++. That should be enough. Yours faithfully, Gregg Smith

$194 USD in 3 days
(0 Reviews)
0.0