Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is a c++ assignment, thank you in advance. Your solution should for this assignment consist of three (3) files: HealthProfile.h (class specification file) HealthProfile.cpp(class

Here is a c++ assignment, thank you in advance.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Your solution should for this assignment consist of three (3) files:

HealthProfile.h (class specification file)

HealthProfile.cpp(class implementation file)

main.cpp (application program)

For your firth programming assignment you will be implementing a class called HealthProfile. The class attributes should include the person's first name, last name, gender, date of birth (consisting of separate attributes for the month, day and year of birth), height (in inches) and weight (in pounds). Your class should have a constructor that receives this data. For each attribute, provide set and get functions. The class also should include member functions that calculate and return the user's age in years, maximum heart rate and target-heart-rate range, and body mass index (BMI). Write an application that prompts for the person's information, instantiates an object of class Health Profile for that person and prints the information from that objectincluding the person's first name, last name, gender, date of birth, height and weightthen 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 shown below. BMI VALUES Underweight: less than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obese: 30 or greater

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions