Non-void
Method exercise
•Write
a method called getBMI
that calculates a person’s Body Mass Index. The formula is: BMI
= Weight (lb) / (Height (in) x Height
(in)) x 703
•Example
: Someone who is 5'6" (5'6" = 66") and
weights 160 lb has a BMI of 160 / (66 x 66) x 703 = 25.8
In
your main program, print the following 2 lines:
At
66” and 160lb, Ted has a bmi
of 25.8
At
55” and 160lb, Mary has a bmi
of <whatever it returns>
Extra:
Mary and Ted together have an average bmi
of ??