public void msgHereIsYourChange(double change) { log.add(new LoggedEvent("Received HereIsYourChange from cashier. Change = " + change)); System.out.printf(getName() + ": Recieved $%.2f in change from cashier.%n", change); }
public void msgYouHaveDebt(double remaining_cost) { log.add(new LoggedEvent("Received YouOweUs from cashier. Debt = " + remaining_cost)); System.out.printf(getName() + ": Recieved $%.2f of debt from cashier.%n", remaining_cost); }
public void msgHereIsYourCheck(double total) { log.add(new LoggedEvent("Received msgHereIsCheck from waiter. Total = " + total)); System.out.printf(getName() + ": Recieved $%.2f bill from waiter.%n", total); }