With regard to the ravaging impact of the COVID-19 pandemic which is caused by the SARS-CoV-2; the World Health Organization (WHO) has long made public some symptoms, which the general populace can employ as a basic first-aid reference/guide, to diagnose the severity of a patient’s symptom(s). Thus, the table below illustrates the severity of these symptoms in patients, based on clinical records, since February 2020 till date. Therefore, write a Java program correctly such that your source code will accomplish the following: 1. Display all the Symptom Codes (from 10 – 23 only) and the corresponding Symptom Descriptions to the user using the following format: Symptom Code => Symptom Description. Do not include the Symptom Category in your screen display to the user. 2. Display a prompt message for the user to enter a Symptom Code. 3. The Symptom Codes: 10 – 13, 14 – 20, and 21 – 23 indicate the Most Common Symptoms, the Less Common Symptoms, and the Critical Symptoms of COVID19, respectively. 4. Validate the user’s input to ensure that a valid (numeric value or Symptom Code) has been entered. If otherwise, display the respective error message and end the program with a note to the user to retry again. 5. If a user enters a valid numeric value or Symptom Code, process the input within your code and return the respective Symptom Category alongside some corresponding advice note as shown below: Symptom Category  Advice Note Most and Less Common Symptoms You are experiencing a common symptom with regard to either COVID-19 or a respiratory infection (e.g. flu). Kindly isolate yourself as soon as possible, and endeavor to perform a PCR (Polymerase Chain Reaction) test to confirm your COVID-19 status. Critical Symptoms You are experiencing a CRITICAL/SEVERE symptom with regard to either COVID-19 or a respiratory infection (e.g.flu). Kindly isolate yourself as soon as possible and call 911, immediately. No Obvious Symptoms You are currently experiencing no observable symptom with regard to either COVID-19 or a respiratory infection (e.g. flu). Although, you may be asymptomatic. Thus, kindly adhere to all the COVID-19 safety regulations within your city and province. 6. Finally, display a complimentary-close message as follows: Thank you! Please stay safe and healthy.

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
100%

Question 1: Simple COVID-19 Diagnostics Expert System

With regard to the ravaging impact of the COVID-19 pandemic which is caused by the SARS-CoV-2;
the World Health Organization (WHO) has long made public some symptoms, which the general
populace can employ as a basic first-aid reference/guide, to diagnose the severity of a patient’s
symptom(s). Thus, the table below illustrates the severity of these symptoms in patients, based on
clinical records, since February 2020 till date.

Therefore, write a Java program correctly such that your source code will accomplish the following:

1. Display all the Symptom Codes (from 10 – 23 only) and the corresponding Symptom
Descriptions to the user using the following format: Symptom Code => Symptom Description. Do not include the Symptom Category in your screen display to the user.

2. Display a prompt message for the user to enter a Symptom Code.

3. The Symptom Codes: 10 – 13, 14 – 20, and 21 – 23 indicate the Most Common
Symptoms, the Less Common Symptoms, and the Critical Symptoms of COVID19, respectively.

4. Validate the user’s input to ensure that a valid (numeric value or Symptom Code) has been entered. If otherwise, display the respective error message and end the program with a note to the user to retry again.

5. If a user enters a valid numeric value or Symptom Code, process the input within your code and return the respective Symptom Category alongside some corresponding advice note as shown below:

Symptom Category  Advice Note
Most and Less Common Symptoms You are experiencing a common symptom with regard to either COVID-19 or a respiratory infection (e.g. flu). Kindly isolate yourself as soon as possible, and endeavor to perform a PCR (Polymerase Chain Reaction) test to confirm your COVID-19 status.
Critical Symptoms You are experiencing a CRITICAL/SEVERE symptom with regard to either COVID-19 or a respiratory infection (e.g.flu). Kindly isolate yourself as soon as possible and call 911, immediately.
No Obvious Symptoms You are currently experiencing no observable symptom with regard to either COVID-19 or a respiratory infection (e.g. flu). Although, you may be asymptomatic. Thus, kindly adhere to all the COVID-19 safety regulations within your city and province.

6. Finally, display a complimentary-close message as follows:
Thank you! Please stay safe and healthy.

 

Welcome to the Simple COVID-19 Diagnostics Expert System:
Symptom Code => Symptom Description
10 => Fever
11 => Cough
12 => Tiredness
13 => Loss of Taste and/or Smell
14 => Sore Throat
15 => Headache
16 => Body Aches and/or Pains
17 => Diarrhoea
18 => Skin Rash
19 => Fingers/Toes Discoloration
20 => Red and/or Irritated Eyes
21 => Shortness of Breath
22 => Confusion and/or Loss of Speech
23 => Chest Pains
Please enter the Symptom Code, from the aforementioned, that corresponds to your current health symptoms: 256
Error: Your input/entry is not a valid integer between -128 to 127. Kindly retry again!
Figure 3. Sample3 output of Question1
Transcribed Image Text:Welcome to the Simple COVID-19 Diagnostics Expert System: Symptom Code => Symptom Description 10 => Fever 11 => Cough 12 => Tiredness 13 => Loss of Taste and/or Smell 14 => Sore Throat 15 => Headache 16 => Body Aches and/or Pains 17 => Diarrhoea 18 => Skin Rash 19 => Fingers/Toes Discoloration 20 => Red and/or Irritated Eyes 21 => Shortness of Breath 22 => Confusion and/or Loss of Speech 23 => Chest Pains Please enter the Symptom Code, from the aforementioned, that corresponds to your current health symptoms: 256 Error: Your input/entry is not a valid integer between -128 to 127. Kindly retry again! Figure 3. Sample3 output of Question1
The following are sample screen shots to illustrate the expected behavior of your program. Your
program must display the same information with the same format.
Welcome to the Simple COVID-19 Diagnostics Expert System:
Symptom Code => Symptom Description
10 -> Fever
11 => Cough
12 => Tiredness
13 -> Loss of Taste and/or Smel1
14 => Sore Throat
15 => Headache
16 -> Body Aches and/or Pains
17 => Diarrhoea
18 => Skin Rash
19 -> Fingers/Toes Discoloration
20 => Red and/or Irritated Eyes
21 => Shortness of Breath
22 -> Confusion and/or Loss of Speech
23 => Chest Pains
Please enter the Symptom Code, from the aforementioned, that corresponds to your current health symptoms: 21
Symptom Status: CRITICAL SYMPTOM
You are experiencing a CRITICAL/SEVERE symptom with regard to either COVID-19 or a respiratory infection (e.g. flu).
Kindly isolate yourself as soon as possible and call 911, immediately.
Thank you! Please stay safe and healthy.
Figure 1. Sample1 output of Question1
Nelcome to the Simple COVID-19 Diagnostics Expert System:
************+++*++++++++++++++++++++++++++
Symptom Code => Symptom Description
10 => Fever
11 => Cough
12 => Tiredness
13 => Loss of Taste and/or Smell
14 => Sore Throat
15 => Headache
16 => Body Aches and/or Pains
17 => Diarrhoea
18 > Skin Rash
19 > Fingers/Toes Discoloration
20 > Red and/or Irritated Eyes
21 > Shortness of Breath
22 -> Confusion and/or Loss of Speech
23 > Chest Pains
Please enter the Sympton Code, from the aforementioned, that corresponds to your current health symptons: 127
Symptom Status: NO OBVIOUS SYMPTOM
You are currently experiencing no observable symptom with regard to either COVID-19 or a respiratory infection (e.g. flu).
Although, you may be asymptomatic. Thus, kindly adhere to all the COVID-19 safety regulations within your city and province.
Thank you! Please stay safe and healthy.
Figure 2. Sample2 output of Question1
Transcribed Image Text:The following are sample screen shots to illustrate the expected behavior of your program. Your program must display the same information with the same format. Welcome to the Simple COVID-19 Diagnostics Expert System: Symptom Code => Symptom Description 10 -> Fever 11 => Cough 12 => Tiredness 13 -> Loss of Taste and/or Smel1 14 => Sore Throat 15 => Headache 16 -> Body Aches and/or Pains 17 => Diarrhoea 18 => Skin Rash 19 -> Fingers/Toes Discoloration 20 => Red and/or Irritated Eyes 21 => Shortness of Breath 22 -> Confusion and/or Loss of Speech 23 => Chest Pains Please enter the Symptom Code, from the aforementioned, that corresponds to your current health symptoms: 21 Symptom Status: CRITICAL SYMPTOM You are experiencing a CRITICAL/SEVERE symptom with regard to either COVID-19 or a respiratory infection (e.g. flu). Kindly isolate yourself as soon as possible and call 911, immediately. Thank you! Please stay safe and healthy. Figure 1. Sample1 output of Question1 Nelcome to the Simple COVID-19 Diagnostics Expert System: ************+++*++++++++++++++++++++++++++ Symptom Code => Symptom Description 10 => Fever 11 => Cough 12 => Tiredness 13 => Loss of Taste and/or Smell 14 => Sore Throat 15 => Headache 16 => Body Aches and/or Pains 17 => Diarrhoea 18 > Skin Rash 19 > Fingers/Toes Discoloration 20 > Red and/or Irritated Eyes 21 > Shortness of Breath 22 -> Confusion and/or Loss of Speech 23 > Chest Pains Please enter the Sympton Code, from the aforementioned, that corresponds to your current health symptons: 127 Symptom Status: NO OBVIOUS SYMPTOM You are currently experiencing no observable symptom with regard to either COVID-19 or a respiratory infection (e.g. flu). Although, you may be asymptomatic. Thus, kindly adhere to all the COVID-19 safety regulations within your city and province. Thank you! Please stay safe and healthy. Figure 2. Sample2 output of Question1
Expert Solution
steps

Step by step

Solved in 4 steps with 7 images

Blurred answer
Knowledge Booster
Research
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.
Similar questions
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