A movie theater has three ticket windows and two
computerized ticket kiosks. Some transactions, such as group discounts, can
only be done at the ticket windows. A customer chooses to stand in the shortest
one that can handle his or her transaction. Group sales require four minutes.
Normal ticket sales require two minutes at a window and three minutes at a
kiosk. Internet ticket sales pickups require one minute at a kiosk and two
minutes at a window.
Write code using queues to represent the five lines. The
data set should be made up of randomly arranged customer arrivals, with 5%
group sales, 20% Internet ticket sales, and 75% regular ticket sales.
A data set will consist of 20 customers.
All of the customers all arrive at the same time. The
simulation should determine: maximum length of each line, the average waiting
time for each line, and the time required for each line to empty.
Hint: Use #include <list> to create the data set by
adding 10 group, 40 Internet, and 150 regular customers and then shuffling the
list. This list is then traversed, transferring each customer to the shortest
queue that can handle the customer's transaction.
Step 1 -- Write out the classes/objects/variables that you will need to develop the simulation.
Step 2 -- Write out the process (pseudocode) for how the simulation will run
Step 3 -- Write the code