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_2

Step: 3

blur-text-image_3

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 And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago