28. Body mass index (BMI) is a measure of obesity. In standard units, it is calculated by...
Question:
28. Body mass index (BMI) is a measure of obesity. In standard units, it is calculated by the formula where W is weight in pounds, and H is height in inches. The obesity classification is:
Write a program in a script file that calculates the BMI of a person. The program asks the person to enter his or her weight (lb) and height (in.). The program displays the result in a sentence that reads: “Your BMI value is XXX, which classifies you as SSSS,” where XXX is the BMI value rounded to the nearest tenth, and SSSS is the corresponding classification. Use the program for determining the obesity of the following two individuals:
(a) A person 6 ft 2 in. tall with a weight of 180 lb.
(b) A person 5 ft 1 in. tall with a weight of 150 lb.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: