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

Write an interactive C++ program that uses the array implementation of a priority queue to monitor the flow of patients in a large hospital that will be visiting one of five clinics in the hospital. The program will maintain information about patients, such as, name, address, age, insurance information, telephone number, emergency contact name and telephone number, and reason for visit. The patient will be assigned an account number and a priority depending on the following (have-an-appointment, walk-in-critical, walk-in-not-critical).

The patient may visit one of five offices. Each is managing the scheduling of its patients using its own queue. Patients are seen according to 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

o List all patients still waiting in queue by name.

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!