Question
Narration: Mark Weight out of 50 Code needs to be done in C++. - Consider customer service of an emergency room (ER) in a hospital.
Narration: Mark Weight out of 50
Code needs to be done in C++. - Consider customer service of an emergency room (ER) in a hospital. A patient in ER is placed in a waiting list based on how much its situation is urgent compare to other patients. For example, if a case is very urgent, it should be serviced before other patients who are less urgent, even they have been in the waiting list long before. Also, if two patients have the same urgency, normally the one who comes earlier will be serviced first.
1. Develop a class for ER waiting list named ERWL (ER.h) using generic types with necessary member functions including constructor(s), destructor(s), insert (adds a new patient into the list given his/her status) and remove (removes the patient from the list with the most urgent status). (Mark Weight: 30)
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