Question: I need help writing a c++ program that will allow patients to be entered into the system based on a priority level one through five

I need help writing a c++ program that will allow patients to be entered into the system based on a priority level one through five (with lower levels being served first). The program should store their name, health complaint and pririty level. the program should then be able to be put in "run" mode which puts the patiets into a priority queue based on their priority level as well as the order they were entered. The program should be able to then report the next patient along with their priority level and health complaint.

The build mode allows the user to populate the emergency room with any number of patients prior to entering run mode. Build mode should support the following commands:

1. Add prompts the user to add a new patient and health complaint. The priority queue hasnt been built yet, so patients added during build mode should be added directly to the end of the patient list.

2. Run switch to run mode. Switching to run mode turns the list of patients into a priority queue.

3. Exit exit the program

below is a partial uml diagram for the program

I need help writing a c++ program that will allow patients tobe entered into the system based on a priority level one through

patient Attributes (partial list, other attributes might be necessary) Name Name Complaint Priority Ticket Methods (partial list, other methods might be necessary) Name Constructor Data Type String String Integer Integer Purpose Name of patient Patient's Complaint Priority value for complaint Unique number representing when the patient arrived Return Type None Parameter List Purpose None Empty constructor that creates a basic patient with an ambulatory level complaint and a ticket of -1 Constructor that creates a patient with Constructor None Name: String Complaint: String name, complaint, priorty, and ticket set Priority: Integer to the specified values Ticket: Integer patient Attributes (partial list, other attributes might be necessary) Name Name Complaint Priority Ticket Methods (partial list, other methods might be necessary) Name Constructor Data Type String String Integer Integer Purpose Name of patient Patient's Complaint Priority value for complaint Unique number representing when the patient arrived Return Type None Parameter List Purpose None Empty constructor that creates a basic patient with an ambulatory level complaint and a ticket of -1 Constructor that creates a patient with Constructor None Name: String Complaint: String name, complaint, priorty, and ticket set Priority: Integer to the specified values Ticket: Integer

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!