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 theCompany object is more than 200, a message shoud be printed to the screen with the name of thecompany and the label High. If the price of the stock associated with the Company is between 100 and200, a message shoud be printed to the screen with the name of the company and the label Medium. Ifthe price of the stock associated with the Company object is less than 100, a message shoud be printedto 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 defaultconstructor. 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 theinformation associated with newCompany to the screen.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here