|
-
Nov 8th, 2000, 06:02 AM
#1
Thread Starter
New Member
Stop looking and help muggles
To all you intelligent people out there
Can someonehelp ? the question is I need to write a pgm that simulates people standing in queue the probability of someone arriving or departing the queue is 1 in 30 per second using the rand function rand() %30 ==0
I then need to call to the function to see if a departure has occured.
I need to write a pgm that will keep a record of the no of people in the queue every second and printing the queue length each minute. using loops to simulate the no of minutes and no of seconds The pgm should run for 20 minutes.
Many thanks
I have another e-mail address( home) [email protected] if this site is difficult to e-mail.
Bob Briggs
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|