Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

2. Outline the business case for a diverse workforce.

Answered: 1 week ago