Skip to content

Instantly share code, notes, and snippets.

@els-pnw
Created September 7, 2012 14:13
Show Gist options
  • Save els-pnw/3666573 to your computer and use it in GitHub Desktop.
Save els-pnw/3666573 to your computer and use it in GitHub Desktop.
public class CashRegister {
public static int registers = 0;
public int transactions = 0;
public double amount = 0.00;
public double AddTransaction(double a) {
amount = amount + a;
return amount;
}
public static int RegisterCount() {
return registers;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment