A hospital wants to create a database regarding its indoor patients. The information to store includes: -
Question:
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
Business Analytics Data Analysis and Decision Making
ISBN: 978-1305947542
6th edition
Authors: S. Christian Albright, Wayne L. Winston