Customers can purchase books from a vending machine.
-
The vending machine dispenses books of the following genres: mystery, nonfiction, bestsellers, and children's
- Each book has a title and price.
-
A main menu must display presenting the following options:
- "(B) Browse Book Collection"
- "(P) Purchase"
- "(E) Exit"
-
When the customer selects "(B) Browse Book Collection", they're presented with a list of all books in the machine with its quantity remaining:
- Each book has a slot identifier and a purchase price.
- Each slot has enough room for 5 of that title.
- Every product is initially stocked to the maximum amount.
- A product that has run out must indicate that it is NO LONGER AVAILABLE.
-
When the customer selects "(P) Purchase", they are guided through the purchasing process menu:
- "(M) Feed Money"
- "(S) Select Item"
- "(F) Finish Transaction"
- Current Balance: $0.00