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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In this activity, you will demonstrate your skill by applying decision structures and logic
while creating a program that executes different actions based on the user interaction.
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. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education