On program start, each inventory item’s data is read from the inventory file, placed in a new item class object, which is then placed in the inventory ArrayList.

computer science

Description

3. Assignment Details Model a simple point of sale system that behaves as follows when it is run. 

• On program start, each inventory item’s data is read from the inventory file, placed in a new item class object, which is then placed in the inventory ArrayList. 

• The user is then presented with a menu of items that can be selected. The user can then chose to ◦ select an item from the inventory to place in a shopping cart (also an ArrayList). 

▪ The user is presented with a list of available items and makes one selection. The menu of items shown to the user is generated from the ArrayList of inventory items. 

▪ The item selected is placed in the users cart ArrayList and subtracted from quantity on hand in the inventory ArrayList. 

▪ The user may chose to not select an item to place in the cart. ◦ take an item out of the cart ArrayList and return it to the inventory ArrayList. 

▪ The user is presented with the contents of the cart. 

▪ The user can select one item to return to the inventory or may chose to keep the contents of the cart “as is”. ◦ check out, i. e. leave with the items. This triggers


Related Questions in computer science category