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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!