Question: In Java please, would really appreciate it if it could be done very quickly Lars Si Det Doris Sun SUM SR MENCHE 2.3 The Vending
In Java please, would really appreciate it if it could be done very quickly

Lars Si Det Doris Sun SUM SR MENCHE 2.3 The Vending Machine Problem You are required to develop an object-oriented program solving a (simplified) vending machine (VM) problem: There are four products offerred (attend to the exact spellings): "Coke" "Orange Juice" "Kitkat Chunky Bar" - "Lay's Classic Chips" In case you are a big fan of M&M's chocolate bags: unfortunately, the kind of VMs under consideration does not offer them! The VM's LED screen displays the status of the VM: - When first created, the status is "Empty VM Started" - The status only changes when the add or dispense operation (described below) is invoked. Given an VM instance, say vm, there are five operations supported: Check the status of the current VM: vm.checkStatus(). - Check the stock of the current VM: vm.checkStock(). Given a product name: - Add units to its stock, e.g., vm.add("Coke", 5) - Dispense units from its stock, e.g., vm.dispense("Coke", 2) - Check its current stock, e.g., vm.checkStock("Coke") Input names to the add and dispense operations may be invalid, in which case you need to return error messages accordingly. Input units to the add and dispense operations are always valid: you need not worry about non-positive or too-large values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
