C++ cash register | Computer Science homework help