Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Queue Simulation Project - Computing for Mathematicians | MATH 340, Study Guides, Projects, Research of Mathematics

Material Type: Project; Class: Computing For Mathematicians; Subject: Mathematics; University: Northeastern Illinois University; Term: Unknown 1989;

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 08/04/2009

koofers-user-63k
koofers-user-63k 🇺🇸

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download Queue Simulation Project - Computing for Mathematicians | MATH 340 and more Study Guides, Projects, Research Mathematics in PDF only on Docsity! Queue Simulation Project 1) Write a program to simulate the time 30 customers wait in the checkout line at a grocery store. Assume that there is only one checkout line, and that it starts empty (the store just opened!). Assume also that a new customer arrives at the checkout counter every 3.5 minutes and that the checkout process is approximately normally distributed with an average of 3.7 minutes and a standard deviation of 0.8 minutes. Maple can do this for you (with the negligible possibility of getting a negative number): rn:=3.7 + 0.8*stats[random,normald](1) How long does it take between t=0 and the 30th customer leaving? Repeat the simulation a few times to get a sense of the variability in the times. Report the average waiting time and the longest waiting time. 2) Use parts of the program in part 1) as a subroutine and use it in a program that repeats the simulation n times. Each run should produce an average wait time. Calculate the mean and the standard deviation of the n average wait times. Run the program for n=20 and n=100. Do the results change much with different values of n?
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved