mptom(s). Thus, the table below illustrates the severity of these symptoms in patients, ical records, since February 2020 till date. mptom Code Symptom Category Symptom Description Most Symptoms Common Fever Cough Tiredness Loss of Taste and/or Smell Common Sore Throat Headache Less Symptoms Body Aches and/or Pains Diarrhoea skin Rash MP248/Winter 2022 - Assignment 2 Page 1 of

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Question 1 (6pts)- 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.
Symptom Code
10
11
Symptom Category Symptom Description
Common Fever
Cough
Most
Symptoms
12
Tiredness
13
Loss of Taste and/or Smell
14
Less
Common Sore Throat
15
Symptoms
Headache
16
Body Aches and/or Pains
17
Diarrhoea
18
skin Rash
COMP248/Winter 2022 - Assignment 2
Page 1 of 6
Fingers/Toes Discoloration
Red and/or Irritated Eyes
19
20
21
Critical
Shortness of Breath
22
Symptoms
Confusion and/or Loss of Speech
23
Chest Pains
24 to 127
-128 to 9
No
Obvious
Symptoms
Therefore, write a Java class/program such that your source code will accomplish the following:
1. Name of the class/program = A2_Q1.
2. 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.
3. Display a prompt message for the user to enter a Symptom Code.
4. The Symptom Codes: 10 - 13, 14 - 20, and 21 - 23 indicate the Most Common
Symptoms, the Less Common Symptoms, and the Critical Symptoms of COVID-
19, respectively.
5. 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.
6. Ifa 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 Common Symptoms You are experiencing a common symptom with regard to
Less Common Symptoms 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.
7. Finally, display a complimentary-close message as follows:
Thank you! Please stay safe and healthy.
Transcribed Image Text:Question 1 (6pts)- 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. Symptom Code 10 11 Symptom Category Symptom Description Common Fever Cough Most Symptoms 12 Tiredness 13 Loss of Taste and/or Smell 14 Less Common Sore Throat 15 Symptoms Headache 16 Body Aches and/or Pains 17 Diarrhoea 18 skin Rash COMP248/Winter 2022 - Assignment 2 Page 1 of 6 Fingers/Toes Discoloration Red and/or Irritated Eyes 19 20 21 Critical Shortness of Breath 22 Symptoms Confusion and/or Loss of Speech 23 Chest Pains 24 to 127 -128 to 9 No Obvious Symptoms Therefore, write a Java class/program such that your source code will accomplish the following: 1. Name of the class/program = A2_Q1. 2. 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. 3. Display a prompt message for the user to enter a Symptom Code. 4. The Symptom Codes: 10 - 13, 14 - 20, and 21 - 23 indicate the Most Common Symptoms, the Less Common Symptoms, and the Critical Symptoms of COVID- 19, respectively. 5. 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. 6. Ifa 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 Common Symptoms You are experiencing a common symptom with regard to Less Common Symptoms 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. 7. Finally, display a complimentary-close message as follows: Thank you! Please stay safe and healthy.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY