Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Solve Prob. 27.4 with the finite-difference approach using x = 2.

Answered: 1 week ago