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?
This is an object oriented
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?
Step by step
Solved in 4 steps with 2 images