Write the definition of a class that has the following properties: (1, 2, 3, 5)
a. The name of the class is stockType.
b. The class stockType has the following instance variables: name of type string, symbol of type string; currentPrice, lowPriceOfTheDay, highPriceOfTheDay, previousDayClosingPrice, fiftyTwoWeeksHigh, and fiftyTwoWeeksLow are of type double.
c. The class stockType has the following member functions. (Make each accessor function constant.) print—outputs the data stored in the member variables with the appropriate titles
setStockName—function to set the stock name
getName—value-returning function to return the stock name
setSymbol—function to set the stock symbol
getSymbol—value-returning function to return the stock symbol
setCurrentPrice—function to set the current price of the stock
getCurrentPrice—value-returning function to return stock,s current price
setLowPriceOfTheDay—function to set stock,s lowest price of the day
getLowPriceOfTheDay—value-returning function to return stock's lowest price of the day
setHighPriceOfTheDay—function to set the stock,s highest price of the day
getHighPriceOfTheDay—value-returning function to return stock's highest price of the day
setPreviousDayClosingPrice—function to set the stock,s previous day closing price
getPreviousDayClosingPrice—value-returning function to return stock,s closing price of the previous
day setFiftyTwoWeeksHigh—function to set the stock,s fifty two weeks highest price
getFiftyTwoWeeksHigh—value-returning function to return stock,s fifty two weeks highest price
setFiftyTwoWeeksLow—function to set the stock,s fifty two weeks lowest price
getFiftyTwoWeeksLow—value-returning function to return stock,s fifty two weeks lowest price
percentGainLoss—value returning function to determine the percentage gain or loss between the
current price and previous day closing price. constructor—with default parameters: The default
value of name and symbol is the empty string "", and the default value of remaining instance variables is 0.
d. Write the definition of the member functions of the class stockType as described in Part c.