Develop a high-quality, object-oriented C++ program that performs a simulation using a heap implementation of a priority queue.
A simulation creates a model of a real-world situation, allowing us to introduce a variety of conditions and observe their effects. For instance, a flight simulator challenges a pilot to respond to varying conditions and measures how well the pilot responds. Simulation is frequently used to measure current business practices, such as the number of checkout lines in a grocery store or the number of tellers in a bank, so that management can determine the fewest number of employees required to meet customer needs.
Airlines have been experimenting with different boarding procedures to shorten the entire boarding time, keep the flights on-time, reduce aisle congestion, and make the experience more pleasant for passengers and crew. A late-departing flight can cause a domino effect:
the departure gate is tied up and cannot be used by other landing or departing flights,
passengers on board the late flight may miss connecting flights and require rebooking and possibly overnight arrangements (meals and lodging), etc., and
passengers complain about being late, and/or about having to rearrange their plans.
Thus, late flights have a huge operational impact.
For this assignment, we will simulate boarding procedures for Airworthy Airlines. The Airline's current procedure is as follows:
pre-board in the following order:
families with young children or people who need help (e.g., wheelchair)
first class and/or business class passengers
elite passengers (frequent fliers) and those passengers seated in exit rows
conduct general boarding in reverse, from the back of the plane to the front in the following order:
rows 23-26
rows 17-22
rows 11-16
rows 5-10
Airworthy is considering revising their boarding procedure such that general boarding is done randomly, meaning the first passenger in line for general boarding is the first passenger to board (i.e., general boarding passengers all have the same priority). Airworthy suspects this random general boarding method will improve the flow of passengers, getting them on board and seated more quickly. It is also less labor-intensive for Airworthy's customer service agents because it significantly reduces the number of boarding announcements required and eliminates confrontations with customers trying to board "out of turn." Note that the revision is to general boarding only. The pre-boarding procedures will not be changed.
HERE IS ONE OF THE ARIWORTHY70 FILE:
Whitley G 8 Knowles G 1 Rocha G 24 Boyle G 24 Wooten G 2 Forbes G 16 Vinson E 1 Valencia E 7 Lindsay E 16 Rasmussen E 5 Sargent G 11 Sosa G 23 Head G 3 Holcomb G 5 Carney G 4 Kirkland G 14 Levine E 9 Cash G 10 Kaufman G 6 Ratliff G 9 Macias G 4 Sharpe G 17 Sweet G 17 Delaney G 9 Emerson G 5 Castaneda E 9 Rutledge G 26 Stuart G 19 Rosales G 23 Baird G 2 Clemons G 8 Mcgowan G 18 Compton E 10 Albert G 15 Acevedo G 14 Mayer E 9 Fitzpatrick G 16 Chaney G 8 Jarvis G 3 Berger G 26 Britt E 11 Odonnell E 8 Levy E 9 Mullen G 6 Pollard G 22 Lott G 10 Cantrell G 15 Holder E 5 Vaughan E 11 Mccarty E 24 Wilder G 11 Mayo G 1 Pickett G 8 Sykes G 26 Bender G 13 Aguirre G 16 Bernard G 10 Hopper H 7 Melendez G 13 Macdonald H 18 Carver G 15 Gould E 26 Suarez G 6 Zamora G 15 Hinton G 13 Cabrera G 26 Dickson G 22 Salas G 24 Bentley G 13 Fuentes G 23 Terrell H 3 Holman E 7 Mcintyre G 16 Hebert G 13 Hendricks G 3 Jacobson G 14 Kline G 14 Faulkner G 5 Chan G 14 Mays G 1 Crosby G 25 Buck G 22 Maddox G 20 Buckley E 17 Kane G 10 Rivas E 26 Dudley G 22 Best G 12 Finley G 24 William G 18 Frost G 2 Ashley G 14 Mcconnell G 7 Blevins G 11 Middleton G 17 Bean G 18 Sheppard G 11 Estes E 7 Pugh G 8 Rivers E 6 Barr G 4 Landry E 10 Foley G 2
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.