Question
Please complete my codec++!!!! #include #include using namespace std; class HealthProfile { public: void SetName(); void setAge(); void setWeight(); void setHeight(); double getName(); double getAge();
Please complete my codec++!!!!
#include
#include
using namespace std;
class HealthProfile
{
public:
void SetName();
void setAge();
void setWeight();
void setHeight();
double getName();
double getAge();
double getWeight();
double getHeight();
double getBMI();
double getCategory();
double getMaxHR();
void printProfile();
private:
double age;
double weight ;
double feet;
double inches;
double height;
double bmi;
double MaxHR;
};
int main() {
string name;
double age;
double weight ;
double feet;
double inches;
double height;
double bmi;
double MaxHR;
cout
cin>>name;
cout
cin>>age;
cout
cin>>weight;
cout
cin>>feet;
cout
cin>>inches;
height = feet * 12 + inches;
bmi= (weight*703) / (height * height);
MaxHR = 220 - age;
cout
cout
/*Category BMI Range
Underweight less than 18.5
Normal 18.5 to less than 25
Overweight 25 to less than 30
Obese 30 or more
*/
if(bmi
cout
else if(bmi=18.5 && bmi
cout
else if(bmi= 25 && bmi
cout
else if(bmi>=30)
cout
}
void HealthProfile::SetName (string name)
{
string name;
}
void HealthProfile :: setAge( double Age)
{
double age;
}
void HealthProfile ::setWeight()
{
void HealthProfile ::setHeight()
double HealthProfile ::getName()
double HealthProfile ::getWeight()
double HealthProfile ::getHeight()
double HealthProfile ::getBMI()
double HealthProfile :: getCategory()
double HealthProfile getMaxHR();
void HealthProfile printProfile();
Activities Google Chrome Thu 16:37 FloorFence t L' Assignment > in C+ With s iwBeginners [ My Drive-cos i untitled doc G ca ulate m x G unconventi G set and get xe chegg study Solved:How X 3pdf Assignment 36 113 CS116 Assignment #3 SKILL SET: Building and using a dass Write the code for the TWO problems below. Turn in tor EACH problem: .Lab Report (indudes testingyrunitime output and source code at end) . Zip file with source code CODE STYLE REQUIREMENTS Indude moonngful comments throughout your code Use meaningful names or variables . Code must be properly Indented . Indude a comment header at beginning of each file, example belovw Programmer's Name: Student Name Program Description: Describe here what this program will do KEEP IN MIND .USE FUNCTIONS TO ORGANIZE YOUR CODE, BUT NOT ALL FUNCTIONS NEED TO BE CLASS FUNCTIONS. MAKE MAIN SIMPLE (but show the basic low of the program) COMMENT YOUR COCE!!! PROBLEM 1: Health Profile Console Program (NO DATA VALIDATION) GyrrBRUs has a need to pravide fitriess/health nforrnetion to their dients including BMI and maximum heart rate. Your task is to write a console program to do this. Max heart rale is calculated as 220 mius a person's age Body Mass Index (BMI) is a measure of body fat based on a person's heght and weight BM can ba uscd to indicate if you are overweight, obese, underwoight, or normal. The formula to calculate BMI Is BMI veight(lh) x 703 (hetght(in) The folowing BMT catrgories are based an this caloulation. Categary Urderweight Normal Ovorwcight Obese BMI Range less than 19.5 18.5 to less than 25 25 to less than 30 30 or more lab03.pdf Show allxStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started