C++ Ticket Kiosk

timer Asked: May 9th, 2016

Question description

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

Tutor Answer

(Top Tutor) Studypool Tutor
School: University of Maryland
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors