From: Steven Boss Date: 2010-09-20T16:05:23+09:00 Subject: Re: need Help Simulation in ruby Steven Boss wrote: > Hi everyone can someone help me with my simulation program: > > Here is the problem: > An Ambulance are dispatched at a rate of one every 15 + 10 minutes in a > large metropolitan area. Fifteen percent of the calls are false alarm > which requires 12 + 2 minutes to complete. All other calls can be one of > two kinds. First kind are classified as serious. They constitute 15% of > the non-false alarm calls and take 25 + 5 minutes to complete. The > remaining call take 20 + 10 minutes to complete. Assume that there are > very large number of available ambulance, and that any number can be on > call at any time. Write a program that would simulate the system’s 500 > call to be completed. > > i think it is similar to this topic: > http://www.ruby-forum.com/topic/215134#new i tried to start from scratch so: Ambulance(Dispatch Rate) – 15sec ->10 Minutes 1 False alarm Calls(15%) – 12sec -> 2Minutes 1 Non-False alarm(15%) – 25sec -> 5minutes Normal Calls – 20sec -> 10minutes -- Posted via http://www.ruby-forum.com/.