Home‎ > ‎Assignments‎ > ‎

A Simple Cafeteria Simulation

Write a C++ program that will keep track of a cafeteria at lunch time, say, 11:30 to 2:30.  Students arrive at random intervals (approx. 2 minutes apart – we will discuss this more fully in class). Each student has an ID, a name, and the amount he/she will spend. Your program will output the “state variables” – e.g., number of students served so far, number of students currently being served, amount of money taken in so far, etc. – every 15 minutes, starting at 11:30 a.m. Create a full class for student, including a method for entering student data.