June 2017
Beginner
1296 pages
69h 23m
English
2.33 (Body Mass Index Calculator) We introduced the body mass index (BMI) calculator in Exercise1.10 . The formulas for calculating BMI are
or
Create a BMI calculator that reads the user’s weight in pounds and height in inches (or, if you prefer, the user’s weight in kilograms and height in meters), then calculates and displays the user’s body mass index. Also, display the BMI categories and their values from the National Heart Lung and Blood Institute
http://www.nhlbi.nih.gov/health/educational/lose_wt/BMI/bmicalc.htm
so the user can evaluate his/her BMI.
[Note: In this chapter, you learned to use the int type ...