PPR hospital is planning to start COVID vaccination process. Hospital has planned to conduct vaccination drive for patient’s age 18 years and above. They have planned their process to have the following task Write a java application to help the company to complete the task 1. Registration Process-Should Assign patient Name, age, Gender (Takes three values, male, female, other). previous_medical _issues (take two values yes, no). Admission card should print the details of the patient. 2. Create an interface called MedicalCondition with method previous_medical_condition() – invoked when patient has history of previous medical condition. 3. If previous_medical _issues for a patient is “yes” notify the patient using method previous_medical_condition(). 4. Display the count of patients registered. Display the count of female patients registered between the ages 20-30. 5. If the age of the patient is less than 18 raise an exception that cannot be vaccinated. 6. Display the male patient details in increasing order of their age, female patient details in decreasing order of their age.
Mukesh M.
I need answer11/22/21