Question: Write a program in java that prompts the user to enter weight and height and computes two people's body mass index (BMI) and displays to
Write a program in java that prompts the user to enter weight and height and computes two people's body mass index (BMI) and displays to the user the weight report based on the bmi index.
The program calculates the bmi according in the following method:
public static double bmi(double height, double weight) {
return (weight * 703 / height / height);
}
The weight report is displayed according to the following criteria:if (bmi < 18.5) --> underweight if (bmi < 25) --> normal if (bmi < 30) overweight else obese
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
