Create a simulation system for ticket purchasing for movie, football, concerts and etc. The
simulation system should be able to simulate the arrival of the customers and evaluate the results
of the simulation. Assume that there are different types of tickets for sales. Firstly, create and
display the tickets information table, the table of the service time, inter-arrival time, ticket slot/day
and ticket type, with an example given below(Picture1&2).

Before the simulation starts, set the counters that are in operation and counters that are not in
operation. During the simulation, more counters should be opened if there is a need (Set the
conditions for this). Besides, you can create a special counter that exclusively for member only
and so on. Assume that the customers queue up in a line and will proceed to any counter(s)
that are free to serve the customers. End the simulation when all the customers have arrived or
all the tickets are sold off.
For generation of random numbers for the service time, inter-arrival time and ticket type and etc,
you can consider linear congruential generators and other generators. User should be able to choose
the type of random number generator to be used before the simulation. Adjust the range of random
numbers so that they are within the appropriate range. Exhibit the message for the counter
operating status, arrival, departure of the customers and so on from time to time. For example:
Counter 1 and Counter 3 are in operation.
Arrival of first customer at minute 0 and 5 tickets were purchased.
Arrival of second customer at minute 2 and 2 tickets were purchased.
Departure of the first customer at minute 4.
Service for second customer started at minute 2.
Counter 2 started operation at minute 3.
Ticket type 1 is selling fast.

At the end of the simulation, display the results of the simulation such as the following:(Picture3&4)

At the end, evaluate the results of the simulation, such as (not limited to) average waiting time of
a customer, average inter-arrival time, average arrival time, average time spent, probability that a
customer has to wait in the queue, average service time for each counter and sales per counter.

Leave a Comment

Your email address will not be published. Required fields are marked *