257
© 2020 Cengage Learning®. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or
in part.
15.32 The Body Mass Index (BMI) is a way of determining obesity and whether someone is
overweight. It is computed from
2
)meterin (
)kgin (
height
mass
BMI . Write a program that will
create the table shown in accompanying figure. The BMI values in the range of 18.5 –
24.9, 25.0 – 29.9, and >30.0 are considered healthy, overweight, and obese, respectively.
Height
22.2 24.4 26.7 28.9 31.1 33.3 35.6
19.5 21.5 23.4 25.4 27.3 29.3 31.3
17.3 19.0 20.8 22.5 24.2 26.0 27.7
15.4 17.0 18.5 20.1 21.6 23.1 24.7
13.9 15.2 16.6 18.0 19.4 20.8 22.2