Question: Please write the answer, do not put pictures We want to develop a system that manages patients in a hospital emergency department. The department cannot

 Please write the answer, do not put pictures We want to

develop a system that manages patients in a hospital emergency department. The

Please write the answer, do not put pictures

We want to develop a system that manages patients in a hospital emergency department. The department cannot deal with more than 50 patients. For each new patient, the id, the emergency case and the gender are recorded. The emergency case is ranked from 1: not critical to 5: extremely critical. If the patient is male the gender is set to 1 otherwise it is set to 0. The class Waiting shows the above-specified properties. Waiting -PID : int [] -emCase : int[] -gender : int[] -nbPatients : int +Waiting() +insert(in id : int, in case : int, in gender : int) +patientinformation(in g : int, in status : int) : int +displayPatientinfo(in id) +getIndexofHighestEmCase() : int +deletePatient(in index : int) +processPatient() : void The attribute nbPatients represents the current number of patients in the emergency department The Waiting class gives the following methods: Waiting: Initially no patient is waiting. insert: inserts a new patient. patient Information: returns the number of patients that have the gender g and the emergency case status displayPatient Info: display all information of the patient that has the identification id getIndexofHighestEmCase : returns the index (position) of the first patient that has the highest emergency case deletePatient: deletes the patient located at the position index processPatient: removes the first patient that has the highest emergency case. Implement the class Waiting using Java and write a main class to test your code

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!