proj3d - Simulation Project D: Restaurant Simulation The...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Simulation Project D: Restaurant Simulation The Concept In this project option, you'll use a simulation to study a process. We'll use something familiar, eating in a restaurant, and simplify the model enough that we can create a simulation with the programming skills we've amassed thus far. Of course, this simplification glosses over some details, but the objective is to get experience with the idea of a simulation to analyze the time it takes for some process and do so in the context of something "real." We're interested in simulating parties of customers coming into a restaurant to eat dinner and calculating the time from when the party arrives until when the party leaves. Let's begin by considering a single party entering the restaurant. Let's also define a "server efficiency constant" for use in each trial of our simulation. No doubt, every time something is ordered or available, the server must travel to the table. If the server is slow, the whole dining experience takes longer. Define the "server efficiency constant" as the amount of time it takes for the server to travel to the table. Assume this time to be a constant. Suppose we have a party with some variable size (e.g. 3 people dining, 5 people dining) and the process of dining at our restaurant goes as follows and abides by the assumptions noted here: 1. Arrival and Seating . The party arrives at the restaurant and waits to be seated. There's some randomness in this step. Customers could be seated immediately or have to wait for a table. Define a constant for the maximum wait time and generate a random number for how long it will take until the party is seated. 2. Seating . The party is taken to the table and given menus. Assume the host will have the appropriate number of menus ready before calling the party, thus use a constant for how long it takes to seat a party. 3. Server Arrival and Ordering . We must first wait for the server to come to the table to take the order, so we'll factor the "server efficiency constant" in here. Let's assume that all members of the party know what food and drinks they want to order before the server arrives. Let's also assume that drinks and food are ordered at the same time to simplify our simulation. Each person must give his/her order, so the length of time it takes to place the order depends on the number of guests in the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 02/10/2011.

Page1 / 4

proj3d - Simulation Project D: Restaurant Simulation The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online