Question: In java Design a class named Stock|that contains the following: A Symbol enum field named symbol for the stock's symbol A double data field name
In java

Design a class named Stock|that contains the following: A Symbol enum field named symbol for the stock's symbol A double data field name previousClosingPrice that stores the stock price for the previous day A double data field named currentPrice that stores the stock price for the current time A constructor that creates a stock with specified symbol and name The accessor functions for all data fields The mutator functions for previousClosingPrice and currentPrice A function named getChangePercent() that returns the percentage changed from previousClosingPrice to currentPrice The Enum "Symbol" - will be used to denote stock for companies a. Declare the stock symbols for the following: Microsoft, Apple, Google, Amazon, AT&T b. The symbol should have a string value which is the company name c. Example Symbol.MSFT represents Microsoft stock
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
