App4 Products - AtishAppadu/BlueJay GitHub Wiki

App04: Product Stock Control

Description

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.

Requirements

The application must simulate the following features

  1. Add any number of new products to a stock list
  2. Accept delivery various quantities of existing products
  3. Sell quantities of products from stock
  4. Rename a product from the stock list based on ID
  5. Remove a product from the stock list based on ID
  6. Print a list of all products and their stock levels
  7. Print a list of products based on part of the product name
  8. 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.

Testing

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

Passing stock to the demo object

Passing stock to the demo

Printing all the stock

Printing All Projects

Design

Class Diagram

UML Design

Full class diagram To be added by the student

Testing

Links to the testing be added by the student

Evaluation

To be added by the student

⚠️ **GitHub.com Fallback** ⚠️