App04: Product Stock Control - BNU-Comp-Louis/BlueJ-PartA GitHub Wiki
The applications is used to keep track of the quantity of a set of products that are bought and sold.
Each product must contain a name, and id and the quantity currently in stock.
The application must simulate the following features
- Add any number of new products to a stock list
- Accept delivery various quantities of existing products
- Sell quantities of products from stock
- Rename a product from the stock list based on ID
- Remove a product from the stock list based on ID
- Print a list of all products and their stock levels
- Print a list of products based on part of the product name
- Print a list of products whose stock levels are low
The program must use an ArrayList so that there is no limit to how many products can be added to stock.
There must also be a class (StockDemo) whose sole purpose is to demonstrate that the application can meet these requirements.
For testing purposes at add 10 products, deliver 10 products and sell least 10 products in the stock list. Make sure that errors messages will be displayed if a user tries to sell more of a product than is in stock or if they try to find a product that does not exists.
You must create a StockManager object that can be called stock, or manager. Then create a StockDemo object called demo and pass it the stock object as shown below