Question: You are obviously going to need some classes to model the patient and the doctor so should create these first. For each class: Identify and

 You are obviously going to need some classes to model the

You are obviously going to need some classes to model the patient and the doctor so should create these first. For each class: Identify and define the fields required, these can be found in the scenario; create accessor and mutator methods for each field create a parameter constructor to simplify the creation of patient and doctor objects; create a method that prints the objects details on one line, this will be useful when you want to print a list of the patients and the doctors. Step 2 Once you have created these classes you can then created the hospital class which will be used to maintain collections of the patients and the doctors. Define two fields of type Array List, one for the patients and one for the doctors; create a constructor that will create the ArrayLists; create methods to implement the functionality in 1 and 2 -each user requirement would be a separate method in this class. Step 3 The final part is implementing the appointment functionality. Here I suggest you create a appointment class that has at least two attributes which patient ID, doctor ID, (or patient and doctor object references) date of visit, reason of visit and suggested medication. To implement dates it is recommended that you can investigate on the Java library class GregorianCalendar. what you are required to do There are three parts to the assignment that must be attempted. You are obviously going to need some classes to model the patient and the doctor so should create these first. For each class: Identify and define the fields required, these can be found in the scenario; create accessor and mutator methods for each field create a parameter constructor to simplify the creation of patient and doctor objects; create a method that prints the objects details on one line, this will be useful when you want to print a list of the patients and the doctors. Step 2 Once you have created these classes you can then created the hospital class which will be used to maintain collections of the patients and the doctors. Define two fields of type Array List, one for the patients and one for the doctors; create a constructor that will create the ArrayLists; create methods to implement the functionality in 1 and 2 -each user requirement would be a separate method in this class. Step 3 The final part is implementing the appointment functionality. Here I suggest you create a appointment class that has at least two attributes which patient ID, doctor ID, (or patient and doctor object references) date of visit, reason of visit and suggested medication. To implement dates it is recommended that you can investigate on the Java library class GregorianCalendar. what you are required to do There are three parts to the assignment that must be attempted

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!