Robert Briggs
Nov 8th, 2000, 05:02 AM
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) robert.briggs1@ntlworld.com if this site is difficult to e-mail.
Bob Briggs
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) robert.briggs1@ntlworld.com if this site is difficult to e-mail.
Bob Briggs