Unformatted text preview: 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. patientInformation : returns the number of patients that have the gender g and the emergency case status displayPatientInfo : 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.   ...
View Full Document
This note was uploaded on 08/18/2011 for the course COMPUTER S CSC 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.
- Spring '11