Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 :

image text in transcribed

The Second problem :

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions