/**
 * Steven Ward
 * DrinkMachine.java | Drink Machine Project
 *
 * This file contains the definition of the DrinkMachine class, which is described below.
 *
 * Due Date: December 4, 2016
 *
 */

import java.util.ArrayDeque;
import java.util.Deque;

/**
 * TODO: CLASS-LEVEL DOCUMENTATION FOR DRINKMACHINE CLASS!
 *       JAVADOC TAGS
 */

public class DrinkMachine implements VendingMachine {

  enum Drink {
    COLA(0), LEMON_LIME(1), WATER(2);

    public final int itemNo;
    Drink(int itemNo) { this.itemNo = itemNo; }
  }

  public static final double PRICE = 0.75;

  private Inventory<Drink> inventory;
  private Deque<Money> moneyInserted;

  // Implementation of VendingMachine interface contract.
  @Override public double moneyInserted( ) {
    return Money.totalValue(this.moneyInserted);
  }

  @Override public double moneyRequired( ) {
    return sufficientFunds() ? 0 : DrinkMachine.PRICE - moneyInserted();
  }

  @Override public boolean sufficientFunds( ) {
    return moneyInserted() >= DrinkMachine.PRICE;
  }

  @Override public Deque<Money> giveChange( ) {
    Deque<Money> change = new ArrayDeque<Money>();
    while (!this.moneyInserted.isEmpty()) {
      change.push(this.moneyInserted.pop());
    }
    return change;
  }
}

@@ -1246,11 +1246,168 @@
 nge;%0A  %7D
+%0A%0A  @Override public Money receiveMoney(Money m) %7B%0A    if (sufficientFunds()) %7B%0A      this.moneyInserted.push(m);%0A      return null;%0A    %7D%0A%0A    return m;%0A  %7D
 %0A%7D%0A

Add a function implementation for VendingMachine to DrinkMachine