@@ -0,0 +1,1186 @@
+/**%0A * David P. Lopez%0A * COP2800 HW E8.3%0A * Bank Account Application%0A */%0Apackage POS;%0A%0A/**%0A * 305.467.5719%0A * @author david.lopez016@mymdc.net%0A */%0A/**%0A   A cash register totals up sales and computes change due.%0A*/%0Apublic class CashRegister%0A%7B%0A   private double purchase;%0A   private double payment;%0A%0A   /**%0A      Constructs a cash register with no money in it.%0A   */%0A   public CashRegister()%0A   %7B%0A      purchase = 0;%0A      payment = 0;%0A   %7D%0A%0A   /**%0A      Records the purchase price of an item.%0A      @param amount the price of the purchased item%0A   */%0A   public void recordPurchase(double amount)%0A   %7B%0A      purchase = purchase + amount;%0A   %7D%0A   %0A   /**%0A      Enters the payment received from the customer.%0A      @param paymentReceived is the total amount received%0A      * in Dollars & Cents%0A   */%0A   public void receivePayment(double paymentReceived)%0A   %7B%0A      payment = payment + paymentReceived;%0A   %7D%0A   %0A   /**%0A      Computes the change due and resets the machine for the next customer.%0A      @return the change due to the customer%0A   */%0A   public double giveChange()%0A   %7B%0A      double change = payment - purchase;%0A      purchase = 0;%0A      payment = 0;%0A      return change;%0A   %7D%0A%7D%0A%0A

Create CashRegister.java