Question: Write an interactive C++ program that uses the heap implementation of a priority queue to monitor the flow of patients in a large hospital. The

Write an interactive C++ program that uses the heap implementation of a priority queue to monitor the flow of patients in a large hospital. The program will maintain information about patients, such as, name, address, age, insurance information, telephone number, emergency contact name and telephone number, and description of emergency. The patient will be assigned an account number. Then will assign the patient a priority depending on type of emergency (critical-needs-immediate-attention, critical-does-not-need-immediate-attention, not-critical).

The program should manage the scheduling of patients into THREE operating rooms. Patients are chosen for the operating room by priority value, and patients with the same priority are served on first-come, first-served basis.

Your program should allow the user to

o Enter patient information and assign his/her priority

o Add to queue and given an estimate of waiting time

o Remove from queue and be assigned an operating room

o List all patients still waiting in queue by name.

Copy code and Print Screen of output of question to one word document

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!