Question 4: The most common symptoms of COVID-19 are fever, dry cough, and tiredness. Other symptoms that are less common and may affect some patients include loss of taste or smell, aches and pains,headache, sore throat, nasal congestion, red eyes, diarrhea, and a skin rash. Write a program in C++ to input status of all these symptoms from a patient and diagnose whether the patient has corona virus or not. If a patient has at least one symptom from three ‘common symptoms’ (mentioned above) and has at least one symptom from the above mentioned ‘less common symptoms’ then he/she should be diagnosed as COVID-19 patient, otherwise not. Repeat the process if another patient comes in. A Sample execution of the program is given below:                                                                                      Enter Y or N for every Symptom: Fever:  N Dry cough: N Tiredness: Y Loss of taste or smell: Y Aches and pain: N Headache: N Sore throat: N Nasal congestion: N Red Eyes: N Diarrhea: N Skin rash: Y   Hight Chances of COVID-19, test recommended   Another patient (Y/N): N

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter2: Using Data
Section: Chapter Questions
Problem 4E: In this chapter, you learned that although a double and a decimal both hold floating-point numbers,...
icon
Related questions
Question

Question 4: The most common symptoms of COVID-19 are fever, dry cough, and tiredness. Other symptoms that are less common and may affect some patients include loss of taste or smell, aches and pains,headache, sore throat, nasal congestion, red eyes, diarrhea, and a skin rash. Write a program in C++ to input status of all these symptoms from a patient and diagnose whether the patient has corona virus or not. If a patient has at least one symptom from three ‘common symptoms’ (mentioned above) and has at least one symptom from the above mentioned ‘less common symptoms’ then he/she should be diagnosed as COVID-19 patient, otherwise not. Repeat the process if another patient comes in. A Sample execution of the program is given below:

                                                                                    

Enter Y or N for every Symptom:

Fever:  N

Dry cough: N

Tiredness: Y

Loss of taste or smell: Y

Aches and pain: N

Headache: N

Sore throat: N

Nasal congestion: N

Red Eyes: N

Diarrhea: N

Skin rash: Y

 

Hight Chances of COVID-19, test recommended

 

Another patient (Y/N): N

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr