// starting point class VendingMachine { /** * Create a new, fully-stocked VendingMachine object. Vending machines * begin with eight Dr. Peppers, six foofy Starbucks beverages, and $10 to * make change. */ VendingMachine() { } /** * Insert the number of dollars passed as an argument into the little coin * slot. */ void insertMoney(double dollars) { } /** * Never mind -- gimme my money back. This method returns the amount of * money (in dollars) that the customer has inserted (and obviously takes * away their credit). */ double cancel() { } /** * Buy a Dr Pepper, and return the amount of change (in dollars) owed to * the customer. (Dr Peppers cost $1.25.) If there are no more Dr Peppers * in the machine, or if the user hasn't inserted enough money, this method * will throw an Exception instead of returning. */ double buyDrPepper() throws Exception { } /** * Buy a foofy Starbucks beverage, and return the amount of change (in * dollars) owed back to the customer. (Starbucks cost $8.00.) If there are * no more Starbucks in the machine, or if the user hasn't inserted enough * money, this method will throw an Exception instead of returning. */ double buyStarbucks() throws Exception { } /** * The vending machine man comes to refill this machine, setting it back to * the contents of an ordinary newly-installed machine, and collecting all * the big bucks it racked up from customers (in its return value). */ double refill() { } }