class DrinksMachineC implements DrinksMachine { // A drinks machine with a count on the number of cans left private int balance,price; private int cokes,fantas; public DrinksMachineC(int p) { price=p; cokes=0; fantas=0; } public void addMoney(int pence) // Simulates putting a coin in the slot of the machine { balance+=pence; } public int showMoney() // Simulates the display of the amount put in so far { return balance; } public int showPrice() // Simulates the display of the current price of a can. // Assumes all drinks are the same price. { return price; } public String pressCoke() // Simulates pressing the button to deliver a can of Coke // Returns "Coke" normally, but "Nothing" if there are no Coke cans // left or not enough money has been entered { if(cokes==0||balance