Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This project does not require the use of classes or strings. You may assume inpu

ID: 3664246 • Letter: T

Question

This project does not require the use of classes or strings. You may assume input is of a valid type. 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(inches2

And the categories are:

Underweight BMI < 20.0

Normal 20.0 <= BMI < 25.0

Overweight 25.0 <= BMI < 30.0

Obese 30.0 <= BMI

Use c++ plz

Explanation / Answer

#include const int FEET = 12; // CONVERSION FACTORS int main() { using namespace std; int feet; int inches; int height; int pounds; int ounces; int weight; int heightinches; double bmi; cout inches; cout > pounds; coutounces; heightinches = feet * FEET; // converting feet into inches height = heightinches + inches; // adding the rest of the inches into height weightpounds=ounces*0.0625; weight=pounds+weightpounds; bmi=((weight*702))/(height)^2 if(bmi
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote