This is an object oriented programming question The code should be in C++ language Disease Covid-19 has symptoms, a unique id, and covid_19_status e.g.  Symptomatic or Asyptomatic.Covid-19 can infect patients. A patients could have a patient-id, name, sneezing, coughing and fever and It has a method of checkPatient takes values of sneezing coughing and fever and display the result whether the patient is covid +ve or –ve according to the input values given by the user. Identity the classes (Attributes, function) in the above scenario?    2. Can you code these classes and display the result If the input if 1 for all     symptoms then display on console that patient is covid positive. Otherwise display a message it is covid negative?  3. Add a parameterize constructor in the above identified classes?

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 2E
icon
Related questions
Question

This is an object oriented programming question

The code should be in C++ language

Disease Covid-19 has symptoms, a unique id, and covid_19_status e.g.  Symptomatic or Asyptomatic.Covid-19 can infect patients. A patients could have a patient-id, name, sneezing, coughing and fever and It has a method of checkPatient takes values of sneezing coughing and fever and display the result whether the patient is covid +ve or –ve according to the input values given by the user.

  1. Identity the classes (Attributes, function) in the above scenario? 

 

2. Can you code these classes and display the result If the input if 1 for all     symptoms then display on console that patient is covid positive. Otherwise display a message it is covid negative? 

3. Add a parameterize constructor in the above identified classes? 

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Data members
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage