Question: Note: The code is attached below. First review the code and submit the screen output for the attached CPP source code by creating six patient

Note: The code is attached below.

First review the code and submit the screen output for the attached CPP source code by creating six patient objects for the following people:

1) A 33-year-old woman, non-smoker with normal blood pressure who eats a high fat diet.

2) A 19-old-year man, non-smoker with high blood pressure who eats a high fat diet.

3) A 50-old-year woman, non-smoker with high blood pressure who eats a high fat diet.

4) A 27-year-old man, smoker with high blood pressure who eats a low fat diet.

5) A 43-year-old woman, smoker with high blood pressure who eats a high fat diet.

6) A 17-year-old woman, non-smoker with normal blood pressure who eats a high fat diet.

Please, write the program in c++ and make sure that that it run before posting it...thanks

Note: The code is attached below. First review the code and submit

the screen output for the attached CPP source code by creating six

#include include using namespace std: class Patient /ADT private: string name: int age: int smoker, HBP, HED int points: public: Patient 0 Patient (string, int, int, int, int) void calPoints void setPatient (string, int, int, int, int) void dispPatient 0 t: Patient: Patient (string n, int a, int s, int hbp, int hfd) name = n; agea smoker-S HBP hbp: HED hfd; Patient::Patient () name age = smoker-HBP-RED = 0; void Patient::setPatient (string n, int a, int s, int hbp, int hfd) namen age a smokers HBP hbp: HED hfd; void Patient::calPoints) if [age

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!