Question: In the java . a) ABC Hospital has several doctors and treats several patients. They need an application to monitor their staff and patients. The
In the java 
. a) ABC Hospital has several doctors and treats several patients. They need an application to monitor their staff and patients. The hospital currently has the following departments: ENT Cardiology Neurology Pathology . . You have decided to create the application with the following classes: Class Person: This class has the following attributes: Id Name Class Doctor inherits Person: This class inherits Person and has the following attributes: Salary Specialization Class Patient inherits Person: This class inherits Person and has the following attributes: Date Admitted Date Released Room Category Diagnosis Assigned Doctor Id . . . The Hospital charges the patients the following rates per day: Category (A): Special Room AED 1200 Category (B): Ward Room AED 500 b) Design a project that facilitates the following: 1. Add new doctors. You need to make sure that ids are not duplicated and the doctor has any one of the mentioned specializations. 2. Add new patients. The date admitted is to be extracted from the system date and the date released will be entered at a later stage when the patient is discharged. The room category should be A or B. The assigned doctor ID should refer to any of the available doctors. 3. Discharge patients and calculate the bill. Save the total amount. 4. Displays all patients assigned to a certain doctor. 5. Enquire about a certain patient. 6. Calculate and display the total amounts charged to date. 7. Provide a suitable menu to the user to achieve these functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
