Question: java by netbrans Write a java program that prompts the user to enter his weight (kg) and height (meters) and calculates the user's BMI and

 java by netbrans Write a java program that prompts the user
java by netbrans

Write a java program that prompts the user to enter his weight (kg) and height (meters) and calculates the user's BMI and displays it to the screen. The program should also display an appropriate message according to user's BMI (see the table below) Note: Body Mass Index (BMI) is a measure of health on weight. It can be calculated using the following formula Weight (in kg) Height (in meters) BMI value Output Message BMI is less than 18.5 You are underweight Great. Normal Weight! BMI is 18.5 to 25 BMI is 25.0 or higher You are overweight Sample run (1): Enter your height (in meters): 1.65 Enter your wieght: 65 Your Body Mass Index (BMI) 23.875116 Great.. Normal Weight! Sample run (2): Enter your height (in meters): 1.4 Enter your wieght: 78 Your Body Mass Index (BMI) 35.714287 Caution..! You are in the obese range. United States) Focus 3

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!