Asgt 6 Car Wash Simulation

Asgt 6 Car Wash Simulation - Car Wash Simulation Assignment...

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

View Full Document Right Arrow Icon
Car Wash Simulation Assignment 6 120 points Due Thursday October 21 Consider the simulation of a car wash facility as follows. Assume customers arrive at the car wash in random integer intervals of 1 to 10 minutes, and customers are served in random integer intervals of 2 to 5 minutes. (It takes anywhere from 2 to 5 minutes to assist each car wash customer depending on the level of wash they happen to select – selections will be random). You can use the following algorithm to implement the Car Wash Simulation: 1. Initialization:  a. Initialize any required counters (total customer count, total customers served,  maximum wait time, etc). b. The car wash will be available starting at time 1. c. Generate the next customer’s service time (a random number from 2 to 5) d. Generate a random number from 1 to 10 to determine the minute the first  customer will arrive and when this customer’s service will begin. (This customer  is served as soon as they arrive in line). 
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 10/17/2010.

Page1 / 2

Asgt 6 Car Wash Simulation - Car Wash Simulation Assignment...

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