ON Doctor Stran Getter and Setters toString String 1. Write the Java code for the class Patient based on the above UML and considering the following (0.5 marks] Declare all member variables as in the UML diagram of the class Patient. [1 mark] Write the constructors which takes 3 parameters to set the varible of the class Patient [1 mark] Write a setter and a getter for the member variable age. // Assume that the other setters and getters are implemented (Don't write them, and you can use them in other classes [1 mark] Write The method GroupOfAge that returns a string saying whether the patient is Senior or Not Senior, ven that the patients in me year-old [1 mark] Write the toString method which should return a string with patienti, patientName, and whether the patients Senior or not. It shall be contar como The patient Ali Al Hammadi, ID: 7747 is Not_Senior 2-Write the Java code for the class Doctor based on the above UML and note the following [0.5 marks] Declare all member variables as in the UML. [1 mark] Write the constructors which takes 3 parameters to set the variable of the class Doctor I/Assume that the setters and getters are implemented (Don't write them), and you can use them in other classes [1 mark] Write the toString method which should return a string with Doctor name, Doctor ID and it specialty. For ample: Dr. Mohamed Ahmad, ID: ENT4567, is specialized in: ENT-surgery Save and Submit to save and submit. Click Save All Answers to save all answers. MacBook Pro cors which takes 2 parameters to set the variable of the dass Doctor. I/Assume that the setters and getters are implemented (Don't write them, and you can use them in other cases [1 mark] Write the toString method which should return a string with Doctor name, Doctor ID and it specialty. For example Dr. Mohamed Ahmad, ID: ENT4567, is specialized in: ENT-surgery B: Given the implementation of all the above classes in question A, write dtest class with a main method to do the following [0.5 marks] Create object(s) for the following Doctor Dr. Mohamed Ahmad, ID: ENT4567, is specialized in: ENT-surgery [0.5 marks] Define an array of 20 patients, call the array patientList [2 marks] Assume that the array is populated with 20 patients, write a code to find the number of senior patients. v For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BI V S Paragraph Arial X X & T Te 14px 2 I. ot T99 3 CE E 0) Save ick Save and Submit to save and submit. Click Save All Answers to save all answers. ON toString-String -Doctors Grandes SUS 1- Write the Java code for the class Patient based on the above UML and considering the following 105 markes Declare all member variables as in the UML diagram of the class Patient. [1 mark Write the constructors which takes 3 parameters to set the variable of the class Patient [1 mark] Write a setter and a getter for the member variable age. 1 Assume that the other setters and getters are implemented (Don't write them and you can use them in other classes [1 marki Write The method Groupolage that returns a string saying whether the patient is Senior or Not Senior pre patients with more year old [1 mark] Write the toString method which should return a string with patient.patientName, and whether the patients Senior or not. It shall be more on The patient Ali Al Hammadi, ID: 7747 is Not Senior 2-Write the Java code for the class Doctor based on the above UML and note the following [0.5 marks) Declare all member variables as in the UML [1 mark] Write the constructors which takes 3 parameters to set the variable of the class Doctor //Assume that the setters and getters are implemented (Don't write them), and you can use them in other classes [1 mark] Write the toString() method which should return a string with Doctor name, Doctor ID and it specialty For example, Dr. Mohamed Ahmad, ID: ENT4567, is specialized in: ENT-surgery ck Save and Submit to save and submit. Click Save All Answers to save all answers Sam News Clio Window MacBook Pro cors which takes 2 parameters to set the variable of the dass Doctor. I/Assume that the setters and getters are implemented (Don't write them, and you can use them in other cases [1 mark] Write the toString method which should return a string with Doctor name, Doctor ID and it specialty. For example Dr. Mohamed Ahmad, ID: ENT4567, is specialized in: ENT-surgery B: Given the implementation of all the above classes in question A, write dtest class with a main method to do the following [0.5 marks] Create object(s) for the following Doctor Dr. Mohamed Ahmad, ID: ENT4567, is specialized in: ENT-surgery [0.5 marks] Define an array of 20 patients, call the array patientList [2 marks] Assume that the array is populated with 20 patients, write a code to find the number of senior patients. v For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BI V S Paragraph Arial X X & T Te 14px 2 I. ot T99 3 CE E 0) Save ick Save and Submit to save and submit. Click Save All Answers to save all answers