S I.

asked • 05/15/21

Java program For covid vaccins

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.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.