Program 1
Design a class named Stocks that contains:
Implement the class. Write a test program that two creates Stocks objects named stock1 and stock2 without the use of a constructor for the first two companies the list of stocks below and display the price change percentage and projected price for the next day.
Stock Name
Symbol
Previous Closing Price
Current Price
Apple
AAPL
286.89
284.69
Alphabet Inc.
GOOG
1,263.47
1,284.85
Facebook, Inc.
FB
176.25
179.20
Netflix, Inc.
NFLX
439.17
431.00
Tesla, Inc
TSLA
745.21
772.28
Program 2:
For this program you will be making modifications to your previous program.
You will need to modify the Stocks class by adding:
Implement the class. Write a test program that creates three Stocks objects named stock3, stock4 and stock5 using a constructor using the remaining three listings from the chart. You need to demonstrate the use of both constructors in your program. Display the price change percentage and projected price for the next day.
Fill in the table with your answers from the program.
Change Percentage
Next Day Price Prediction
Please do the program 2 part.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here