Create a user defined Company class the class will include Company Name, Stock Symbol and stock value per share. Include a parameterized constructor and get methods for each of the instance variables. Also include a toString method.
Write a program using an arraylist of company names.
- The program will allow the user to enter 10 business names, stock symbol and stock value and display the name and arraylist size.
- Remove each occurrence of Gateway. Display the new arraylist and arraylist size
- Add one addition software company and 2 additional hardware companies. Display the new arraylist and arraylist size
- Display the index of a user input company - Adobe
Determine the average per share price of the final stock list.
Use spacing, alignment, indentation and comments to provide a easily readable code.
Test values: Oracle, Dell, Apple, MicroSoft, Toshiba, Gateway, Adobe, Intuit, SAP, Gateway