Console-based Project
In this lesson, the complete Vending Machine project is included.
We'll cover the following...
The Aim
The aim is to design a console-based application of a vending machine with the following specifications:
-
Provides the options to the customers to:
- Feed Money
- Select a Product
- Get Change
- Quit
-
Reads the customer inputs and acts accordingly.
-
Accepts $ bills of 1, 2, 5, 10, 20, 50 and 100 denomination.
-
Contains three shelves, one each for snacks, drinks, and chocolates. Each shelf can contain 4 items.
-
Validates the inputs and displays the appropriate messages at each stage of the transaction.
-
Returns the selected product and remaining change if any.
-
Keeps track of the sold products and displays empty shelf slots accordingly.
-
Says ...