Question: A hospital wants to create a database regarding its indoor patients. The information to store includes: - Name of the patient - Age of the
A hospital wants to create a database regarding its indoor patients. The information to store
includes:
Name of the patient
Age of the patient
Disease
Date of admission
Date of discharge
A Create a class called Patient to store the above information.
The member methods should include entering information and displaying the patient's information getters and setters
B Create a class Date to have the date year month, and day as its fields and a method to display the date.
C Create a class Hospital to have a list to store all patients:
It has methods to add a patient to the list and delete a patient from it
It also has a method to display a list of all the patients in the hospital.
It also has a method to display only the patients whose age is less than
Step by Step Solution
There are 3 Steps involved in it
Alright lets tackle each part one at a time Well be using Python for this task Lets create class Pat... View full answer
Get step-by-step solutions from verified subject matter experts
