Body Mass Computation
The body mass index is used to determine if a person is overweight:
BMI = 4.89weight/height2
- where the weight is in pounds, the height is in feet
-
Converting it to a procedure is straightforward … so volunteer to write it, letting your friend build the GUI
bodyMass = 4.89 * weightLBS / (heightIN/12)^2