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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started