BMI formula:
Example 1:
Weight 64 kg and height 1.9 meters tall
BMI = w / h^2
BMI = 64 / 1.9^2
BMI = 64 / 3.61
BMI = 17.1
Example 2:
Weight 184 lb and height 5.10 feet
BMI = (w / h^2) * 703
BMI (184 / 4900) * 703
BMI = 0.3755 * 703
BMI = 26.4
BMI categories are as follows:
Note: Keep in mind that BMI is a ratio between height and total body weight and does not differentiate between weight from muscle or weight from fat, nor consider an individual’s body frame type. It is only one of the several tools used to assess a person’s weight and overall health.
The following program uses the two following functions:
calculateBMI()
indexBMI()
Within calculateBMI()
, the following is executed:
indexBMI()
is calledWithin indexBMI()
, the following is executed:
If you are concerned about your weight, it is best to consult with a healthcare professional.