Your company has been contracted to provide the core logic for a new vending machine. This logic will be integrating the sub-systems of the vending machine, whose interfaces are already well defined.The integration will be bringing together the functionality of the Pricing System, Cashier System and Inventory Management System.
Your assignment is to lead your partner to write the following methods by communicating through test code: (feel free to copy and paste the method definitions)
The pricing system is the index of item prices in our vending machine, and can be thought of as little more than a 2 dimensional array of prices, supplied by the vending machine owner. To aid in usability, this array is accessed through a method:
The Cashier system accepts money and dispenses change. Your system will use it to find out how much
money the consumer has put in to the machine. Your system will also tell it how much
change to dispense, and in what denominations.
The inventory system dispenses product, and detects when product is out.