a. Add a nested class to Stock named Company. Company contains the following fields: (i) name, (ii) city, (iii) state, (iv) number of employees and (v) founded year. b. Add a default and fully...


a. Add a nested class to Stock named Company. Company contains the following fields: (i) name, (ii) city,
(iii) state, (iv) number of employees and (v) founded year.
b. Add a default and fully parameterized constructor to Company.
c. Add a method to Company named determineStatus. If the price of the stock associated with the
Company object is more than 200, a message shoud be printed to the screen with the name of the
company and the label High. If the price of the stock associated with the Company is between 100 and
200, a message shoud be printed to the screen with the name of the company and the label Medium. If
the price of the stock associated with the Company object is less than 100, a message shoud be printed
to the screen with the name of the company and the label Low.
d. In the StockTester class, create an additional Stock object named stockedwCompany using the default
constructor. Using this object, create a Company object named newCompany with name: Big Company,
city: Rogers, state: Arkansas, number of employees: 20 and founded year: 2010. Print out the
information associated with newCompany to the screen.



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here