Description: Create a Java windows application to manage a list of stocks

Add a class Stock with the following fields: companyName, pricePerShare, numberOfShares (currently owned) and commission (this is the percent you pay a financial company when you purchase or sell stocks.

Add constructor, getters and methods:

***purchaseShares (method that takes the number of shares purchased, updates the stock and return the cost of purchasing these shares make sure to include commission.

***sellShares (method that takes the number of shares to sell, updates the stock and return the $amount earned from the sell.

***getInvestmentAmount() is a method that returns the current value of your investments in that stock

Build the Frame layout design to allow a user to enter a stock, to save the stock to a file and to an arrayList as well.

When the program first start, check if the file exists and if so read all the stocks from the file and add them to the arrayList. add a button to display all the stocks to a JTable Add a necessary gui to purchase shares of the selected stock Add necessary gui to sell shares of the selected

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.