CS 153 Data Structures I

Assignment #14

Due: 5/3/01

Purpose: to learn about Simulation

Environment: either VC++ or Console

Task: Simulation 2+ hours at a McDonalds type fast food restraunt. The details have been discussed at lengh in class so only the simulation parameters will be specified here in detail. When a car arrives, create a struct Car that you will insert and remove from the collection of Qs that represent the different stages of the simulation.

Parameters:

struct Car
{
int NinParty;
int TimeArrival;
int TimeEnterOrderQ;
int TimeLeaveOrderQ;
int TimeInPayQ;
etc etc etc
};

Required output results. These must be labeled appropriately and clearly

Options: Don't think about these until you have a working program

Calculate the average time groups spend in each Q.

Calculate the WORST case time spent in each Q

Add more 'drive thru' lanes if needed

Add more 'inside' lines if needed