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
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |