Please complete a program for this patient portal by implementing the following functionality that will enable the program to: • ask the patient if they have a temperature. • if the patient has a temperature, prompt the patient to enter a temperature for each of the last three days. • compare the three temperatures entered by the patient to determine which of the three values is the highest temperature for the three days. (Hint: use an “if” or “else if” statement for this. Do not use any Math methods for this. • determine if the patient has a “fever” by comparing the highest temperature to the value of 100.4. If the highest temperature is 100.4 or greater, then indicate that the patient has a fever by displaying a message and request that the patient get a virus test because they have a fever. • If the patient doesn’t have a fever, then the program will display a message that they don’t have a fever and to continue monitoring their temperature. • If the patient doesn’t have a temperature, then the program will: • prompt the patient for any symptoms (this can be one single entry) • display a message to the patient stating their symptoms (list the symptom) will be sent to the doctor and that someone will contact them within 24 hours. You can follow these steps to guide you through the process. 1) Create a public class named PatientPortal. 2) The PatientPortal class will have instance variables for each object to hold data pertaining to each object as needed (for the input from the patient and any program generated values such as the maximum temperature). 3) Create a main() method within the PatientPortal class that will: 4) Display a greeting. 5) Asks the patient if they have a temperature. 6) Asks the patient to enter three temperatures if they answer “yes”. 7) Determines and displays the highest temperature entered by the patient. 8) Determines if the highest temperature is at or above 100.4 and displays a message that they have a fever and to get a virus test if the temperature is at or above 100.4. 9) Asks for symptoms if the patient does not have a temperature (this can be entered as one string since we have not covered looping at this point). 10) Displays the symptoms along with a message which states the symptoms are being sent to the medical team and a doctor will respond within 24 hours. Disclaimer: This is not an actual medical example nor is it representative of a known medical practice or procedures. If you feel you have any symptoms of illness, please contact your physician or a qualified medical professional for actual medical advice.
In this activity, you will demonstrate your skill by applying decision structures and logic
while creating a
SCENARIO
A new virus has been infecting many people in the region and a medical team has decided
to streamline their operations for medical triage. The team wants you to add a patient
portal to their computer system to help with this new endeavor.
This portal will offer the patient a method of entering their symptoms. If they have a
temperature, then the temperature will be entered for three days. If the patient doesn’t
have a temperature, then they can enter other symptoms. Once the data is entered, it will
be sent to the doctors for review.
Please complete a program for this patient portal by implementing the following
functionality that will enable the program to:
• ask the patient if they have a temperature.
• if the patient has a temperature, prompt the patient to enter a temperature for each of
the last three days.
• compare the three temperatures entered by the patient to determine which of
the three values is the highest temperature for the three days. (Hint: use an “if”
or “else if” statement for this. Do not use any Math methods for this.
• determine if the patient has a “fever” by comparing the highest temperature to
the value of 100.4. If the highest temperature is 100.4 or greater, then indicate
that the patient has a fever by displaying a message and request that the patient
get a virus test because they have a fever.
• If the patient doesn’t have a fever, then the program will display a message that
they don’t have a fever and to continue monitoring their temperature.
• If the patient doesn’t have a temperature, then the program will:
• prompt the patient for any symptoms (this can be one single entry)
• display a message to the patient stating their symptoms (list the symptom) will be
sent to the doctor and that someone will contact them within 24 hours.
You can follow these steps to guide you through the process.
1) Create a public class named PatientPortal.
2) The PatientPortal class will have instance variables for each object to hold data pertaining
to each object as needed (for the input from the patient and any program generated values
such as the maximum temperature).
3) Create a main() method within the PatientPortal class that will:
4) Display a greeting.
5) Asks the patient if they have a temperature.
6) Asks the patient to enter three temperatures if they answer “yes”.
7) Determines and displays the highest temperature entered by the patient.
8) Determines if the highest temperature is at or above 100.4 and displays a message that they
have a fever and to get a virus test if the temperature is at or above 100.4.
9) Asks for symptoms if the patient does not have a temperature (this can be entered as one
string since we have not covered looping at this point).
10) Displays the symptoms along with a message which states the symptoms are being sent to
the medical team and a doctor will respond within 24 hours.
Disclaimer: This is not an actual medical example nor is it representative of a known medical
practice or procedures. If you feel you have any symptoms of illness, please contact your
physician or a qualified medical professional for actual medical advice.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images