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.
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.
Step by step
Solved in 4 steps with 7 images