Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A health care issue that has been in the news lately is the computerization of h

ID: 3616612 • Letter: A

Question

A health care issue that has been in the news lately is the computerization of health records. This probability is being approached cautiously because of sensitive privacy and security concerns, among others. [We address such concerns in later excercises.] Computerizing health records could make it easier for patients to share their health profiles and histories among their various health care professionals. This could improve the quality of health care, help avoid drug conflicts and erroneous drug prescriptions, reduce costs and in emergencies, could save lives. In this excercise, you'll design a "starter" HealthProfile class for a person. The class attributes should include ther person's first name, last name, gender, date of birth (consisting of seperate attributes for month, day, and year of birth), height (in inches) and weight (in pounds). Your class should have a constructor that recieves this data. For each attribute, provide set and get functions. The class also should include functions that calculate and return the user's age in years, maximum heart rate and target heat rate range, and body mass index (BMI). BMI is calculated by (weight in pounds * 703)/(height in inches * height in inches). Write an application that prompts for the person's information, instantiates an object of class HealthProfile for that person and prints the information from that object - including the person's first name, last name, gender, date of birth, height, and weight - then calculates and prints the person's age in years, BMI, maximum heart rate and target-heart-rate range. It should also display the "BMI values" chart. And calculate the person's age.

Explanation / Answer

please rate - thanks I started with your previous post #include #include using namespace std; class HealthProfile { public: HealthProfile(string, string, int,int,int,char,int,int);//constructor that initializes accountBalance void getTargetHeartRate(int,double&,double&); //functionthat retrieves the Target Rate for the person int getAge(); //function that retrieves the age of the person basedon int getMaximumHeartRate(int ); //function that retrieves themaximum string getlastName(); //function that retrieves the last name string getfirstName(); //function that retrieves the first name char getGender(); int getHeight(); int getWeight(); private: string firstName; //first name for person string lastName; //last name for person char gender; int age; int height; int weight; int month; //month of birth for person int day; //day of birth for person int year; //year of birth for person }; //end class HealthProfile //constructor initializes firstName, lastName, and dateofBirth HealthProfile::HealthProfile(string first, string last, int m,intd,int y,char g,int h,int w) { firstName = first; lastName = last; gender=g; height=h; weight=w; month=m; day=d; year=y; } //end HealthProfile constructor string HealthProfile::getlastName() {return lastName; } int HealthProfile::getHeight() {return height; } int HealthProfile::getWeight() {return weight; } char HealthProfile::getGender() {return gender; } string HealthProfile::getfirstName() {return firstName; } void HealthProfile::getTargetHeartRate(int m,double&a,double& b) {a=m*.5; b=m*.85; //return TargetHeart; //gives the value of the target heart ratebased on the age of the person }//end function getTargetHeartRate int HealthProfile:: getAge() //function that retrieves the age ofthe person based on {int age,m,d,y; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote