Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please in java, just for clarification. i did the other part until 3,4 and 5 which is the important part. please do your best in

please in java, just for clarification. i did the other part until 3,4 and 5 which is the important part. please do your best in those parts. and so if you can include output to test it. thanks
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
You will write a program for a hospital based on the below requirements. Explore the below UML Diagram (KEEP AN EYE FOR ITALIC FONT which indicotes abstroct methods and classes) Covid19Patient -temperature: double + Covid19Patient(int, String, String, int, double) +getTemp(): double + setTemp(double temp):void +treat(): String +tostring(): String \begin{tabular}{|l|} \hline \multicolumn{1}{|c|}{ RegularPatient } \\ \hline -mainsymptom: String \\ \hline +RegularPatient(int, String, String, int String) \\ +treat(): String \\ +toString(): String \\ \hline \end{tabular} ie package ilstu.edu: inClass: have the main method: - It will control the flow of your program. - It will create an arraylist of patients (only one arraylist should exist in your program) - It will prompt the user to select one of the following options (these options will keep being displayed after each selection until we exit the program): 1. Admit a patient The program will ask if the PCR test result is negative or positive and that will decide what type of patient we have and what information we will ask for. 2. Print patient information It will print all the patient information using the tostring Method 3. Submit a PCR test result It will ask for the patient id and update the por test value for that patient. Any regular patient who gets a positive PCR test should be considered a covid19 patient from that moment. (Hint: copy old object data to the new object) a covid19 patient will be discharged if the PCR test result was negative. 4. Do rounds - It will ask you to enter the current temperature for every Covid19 patient. considered a covid19 patient from that moment. (Hint: copy old object data to the new object) a covid 19 patient will be discharged if the PCR test result was negative. 4. Do rounds - It will ask you to enter the current temperature for every Covid19 patient. - It will treat all the patients currently admitted to the hospital and print out each patient's id and what is the recommended treatment 5. Discharge patient It will remove the patient from our system. Before we discharge a patient, we need to make sure that they have a negative PCR test result 6. Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

=+such as the dirigenti in Italy?

Answered: 1 week ago

Question

=+ Are there closed-shop requirements or practices?

Answered: 1 week ago