Write a body mass index calculator in c input will be a


Question: Write a Body Mass Index calculator in C++. Input will be a person's height in feet and inches as well as their weight in pounds and ounces. The output will be a Body Mass Index and a category that it belongs to (Underweight, Normal, Overweight, Obese). Details: The input for the program will be the height in feet and inches (i.e. 5 8) both integers and weight in pounds and ounces (i.e. 168 3) again, both integers. The output should be a body mass index (double or float) along with the appropriate category. The formula for body mass index using traditional units is: [weight( pounds)*702 ] / [height(inches)^2]. And the categories are: Underweight BMI < 20.0 Normal 20.0 <= BMI < 25.0 Overweight 25.0 <= BMI < 30.0 Obese 30.0 <= BMI

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a body mass index calculator in c input will be a
Reference No:- TGS02301156

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)