Class VendingMachine
java.lang.Object
VendingMachine
(The Brain) This is the core engine
It reads the inventory.txt file, stores the items in a HashMap,
processes the user's money, dispenses the item,
reduces the stock, and generates the receipt
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
VendingMachine
public VendingMachine()Class constructor for Vending Machine
-
-
Method Details
-
loadInventoryFromFile
-
displayMenu
public void displayMenu() -
purchase
public void purchase(String code, double money) throws OutOfStockException, InsufficientFundsException, ExpiredProductException
-