Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write code for the Following problem in Java GUI Stock Graphing For this assignment create a GUl program capable of graphing stock prices for a

Write code for the Following problem in Java GUI image text in transcribed
Stock Graphing For this assignment create a GUl program capable of graphing stock prices for a few chosen companies. Find attached two files giving the last 30 days of stock prices for aapl (apple stock) and nflx (netflix stock). The first line in the file is the most recent day while the 30th line in the file gives the stock price 30 days ago. Each line is that day's closing stock price. Your graphing program should allow the user to select the company their want to plot (apple or netflix) and the amount of days of stock prices they want to plot, for example 5, 10 and 30 days. The plot should show a line plot of the stock prices for the selected period of time, such that the right-most part of the graph gives the most recent price. An Example Program: Stock Price Plotting aapl nfix Os Days 10 Days 30 Days 164 162 160 158 155 The y-axis of the graph should list an appropriate range of values for the points on the graph. Feel free to make your plot more elaborate than the example given if you'd like. The user should be able to change the plot by selecting different parameters, such as company or duration and then see the new plot immediately. Stock Graphing For this assignment create a GUl program capable of graphing stock prices for a few chosen companies. Find attached two files giving the last 30 days of stock prices for aapl (apple stock) and nflx (netflix stock). The first line in the file is the most recent day while the 30th line in the file gives the stock price 30 days ago. Each line is that day's closing stock price. Your graphing program should allow the user to select the company their want to plot (apple or netflix) and the amount of days of stock prices they want to plot, for example 5, 10 and 30 days. The plot should show a line plot of the stock prices for the selected period of time, such that the right-most part of the graph gives the most recent price. An Example Program: Stock Price Plotting aapl nfix Os Days 10 Days 30 Days 164 162 160 158 155 The y-axis of the graph should list an appropriate range of values for the points on the graph. Feel free to make your plot more elaborate than the example given if you'd like. The user should be able to change the plot by selecting different parameters, such as company or duration and then see the new plot immediately

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

Question What is the advantage of a voluntary DBO plan?

Answered: 1 week ago