This was a class project from when I was an undergrad at Chico State. The project simulates a grocery store checkout queue.
Overview:
Write a program to simulate the daily operations of a Kwik-E-Mart.
There are two types of customers, those that buy things (shoppers), and those that steal things and money (robbers).
Your program will (1) read in a list of customers (name, shopper/robber, arrival time, number of items to buy/steal), (2) run the simulation. Output will be generated while the simulation is running.
Customers will enter the store at a specified arrival time, spend time shopping for their items, get in line to pay/steal (our robbers are very polite, they wait in line to rob the store), spend some time paying or stealing money, and then leave the store. When a customer performs an action (arrive in store, get in checkout line, start paying/stealing, finish paying/stealing) your program will print a message documenting the customer's action and the current time.
More information about the project is here: http://www.ecst.csuchico.edu/~tyson/classes/211.f13/p5.html.