A Java console program to simulate a grocery check out system