Am a student and i need help in a difficult cse lab the uses the programming software.
Problem context: In this lab we will design and implement a solution for analyzing data collected from online sources. In particular, you will work with and plot as graph data from financial domain such as stock prices and volume of sale over a period of a year.
During lecture discussed visualizing the trend for Apple stock data. The information or the details of Apple Inc. stock is collected from the online site finance.yahoo.com. The data collected is filtered using Processing functions and is plotted using Shape commands. You are required to generalize this solution so that it can be used for analyzing more than one stock.
Version 1 Implementation Details:
1. Data collection: You will collect data from finance.yahoo.com. Enter a stock symbol on the search box and then get to the “Historical Data” option on the left panel; set the dates to the range you need; study the table that is displayed. Download it and save it as “[url removed, login to view]”; where “stockname” is any one of the four stocks you are comparing, specific to the stock in the version of the lab you are working on.
2. Implement the solution given for Apple Inc. for the one year from January 1, 2016, with samples at a daily rate. This implementation should include the drawXLabels function that display labels on x-axis.
3. Display the stock prices over a year for Apple Inc. stock.
4. Now add the functions such as average and movingAverage(...) and plot the results.
5. Label the chart appropriately: axes, name of the company, etc. Use a different color for each of the plots (stock value, average and moving average).
Version 2 Implementation Details:
At this point you want to compare Apple and IBM stock. You are required to a split screen for the two stocks. Instead of repeating the code, reuse the code by parameterizing on the different variables and use modules (hint use the functions developed in version 1). The IBM stock will
appear at the bottom half of the canvas and the Apple stock at the top half. You will still plot stock value, average, and moving average. For example, drawing legend has to be written as a function; drawGraph, drawXLabels, drawYLabels, etc. have to include extra parameters such as X1, Y1, width and height of graph area, the stock name, etc. Label the charts appropriately: axes, name of the company, etc.
Version 3 Implementation Details:
Now add two more stocks to make a visual of the 4 stocks in the same canvas. Data collection for the stocks should be for the same period so that we can compare their respective performance. Label the charts appropriately: axes, name of the company, the symbols etc.
Note for all versions: It is very important you develop the solution in incremental steps. Your program should be modular with coherent functions and parameters to customize the functions. You can use println to debug your program. Your code should use variables as appropriate and use comments.