Simulates a bank queue graphically. Uses the negative exponential
distribution. v1.0 for TI-82.

 
    QUEUESIM v1.0 is Freeware
    Commercial Distribution Restricted                 
    Copyright (C) 1994 by Mikael Bonnier, Lund, Sweden.
 
 
1. System and Memory Requirements
This program is for the TI-82. It consists of one main program that
uses 342 bytes. It requires additionally 105 bytes for data to run.
 
QUEUESIM uses or alters these variables:
Real:   A,C,F,G,Q,S,Y
 
 
2. Installation
If you have TI-GRAPH LINK UUDecode this file, and send the resulting
QUEUESIM.82P program to the calculator. If you don't have a link you
will have to enter the ASCII82P listing below.
 
 
3. User Instructions
Example:
prgmQUEUESIM [ENTER]
AVERAGE TIMES:
INTER ARRIVAL? 20 [ENTER]
SERVICE? 15 [ENTER]
 
And watch the horizontal bar graph just below Time increase and
decrease. One pixel corresponds to one queue member. The time
is in the same units as the inter arrival and service times
(you may pretend it is in minutes). Note that Time is simulated
in this program, if the the TI-82 had a realtime clock one could
wait after each program loop until the realtime was equal to
the calculated time. This program uses the negative exponential
distribution, this models an old fashioned bank queue.
 
Warning: Don't forget your calculator with this program running,
or else you have to buy new batteries.
 
 
4. Program Comments
The program uses lots of ugly gotos, which is the only way to
code this on the TI-82 (I suppose).
 
 
5. Reference
A. K. Dewdney.
"The (New) Turing Omnibus", ch 4 "Simulation".
Computer Science Press and W. H. Freeman and Company, New York, 1993.
 
 
Suggestions, improvements, bug, and bad-English-in-doc reports
are always welcome to:
                 Mikael Bonnier
                 Osten Undens gata 88
                 S-227 62  LUND
                 SWEDEN
                             
Or use my internet address:
                 mikaelb@df.lth.se
 
// Mikael Bonnier
/////////////////////////////////////////////////////////////////////
