Question: In C++ with coments please comments are very important There are two problems : The first one : The Second problem : I was struggling

In C++ with coments please

comments are very important

There are two problems :

The first one :

In C++ with coments please comments are very important There are two

The Second problem :

I was struggling with validate the name and Calculate the gross pay

problems : The first one : The Second problem : I was

Thanks in advance

PROBLEM 1: Health Profile Console Program (NO DATA VALIDATION) GymsRUs has a need to provide fitness/health information to their clients including BMI and maximum heart rate. Your task is to write a console Max heart rate is calculated as 220 minus a person's age Body Mass Index (BMI) is a measure of body fat based on a person's height and weight. BMI can be used to indicate if you are overweight, obese, underweight, or normal. The formula to program to do this. calculate BMI is weight (b) 703 BMI--(height(m) The following BMI categories are based on this calculation. less than 18.5 18.5 to less than 25 25 to less than 30 30 or more Obese Lab 03 Page 1 Design and code a class called HealthProfile to store information about clients and their fitness data. The attributes (name, age, weight, and height) are private class variables. The class must include the following methods: description to assign to to assign to private to assign to ves a v seAge varia t in Receives TWO inputs Converts and stores the total INCHES in private lass variable pr Returns private class varia Returns private class varia Returns privabe getAge s varia retuns BM getBM Returns category on BMI getMaxHR retums maxximum rate pr Prints in t Main will prompt for user input, which is passed to set functions, Main will display output using the printProfile function of the can assume all user input is valid. le class. Process multiple inputs using a loop. You SAMPLE OUTPUT Enter name or X to quit: John Smith Your age: 35 You weight: 200 You height - feet Your heightinches:0 Health Profile fo John Smith BMI 27.1 BMI Category: oVEEe Max henrt rate: 185 overweight Enter nane or to quit Test with at least 3 more sets of data to demonstrate all 4 categories

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!