/* Calculates the user's body mass index (BMI). 5/28/02 Alton Patrick. */ import java.lang.Math; public class BMI { public static void main(String[] args) { double height, weight, bmi; IO.print("What is your height in inches? "); height = IO.inputDouble(); IO.print("What is your weight in pounds? "); weight = IO.inputDouble(); bmi = weight / Math.pow(height,2) * 703.0; IO.print("Your body mass index is " + bmi + "\n"); } }