Concept explainers
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:
BMI | Classification |
Below 18.5 | Underweight |
18.5 to 24.9 | Normal |
25 to 29.9 | Overweight |
30 and above | Obese |
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.
Want to see the full answer?
Check out a sample textbook solutionChapter 6 Solutions
MATLAB: An Introduction with Applications
- Find the mean hourly cost when the cell phone described above is used for 240 minutes.arrow_forwardAn earthquake in Mexico in 1985 had and intensity level about 125, 000, 000 times the reference intensity. Find the Richter number for that earthquake.arrow_forwardAstronomy The average distance between Earth and the sun is 149,597,888 kilometers. Round the distance to the nearest (a) hundred-million (b) ten million; (c) and million.arrow_forward
- Trigonometry (MindTap Course List)TrigonometryISBN:9781305652224Author:Charles P. McKeague, Mark D. TurnerPublisher:Cengage LearningHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALAlgebra: Structure And Method, Book 1AlgebraISBN:9780395977224Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. ColePublisher:McDougal Littell
- Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillAlgebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:Cengage