Write a program to calculate the Body Mass Index (BMI). The
formulae to calculate the BMI are
BMI = (weightinPounds x 703) / (heightinInches x heightinInches
)
or
BMI = weightinKilograms / (heightinMeters x heightinMeters )
Your program should read the user's weight in pounds and height in
inches (or, Kilograms and meters, if you prefer), calculate and
display the BMI.
Your program should also display a message indicating how the BMI
is evaluated, based on the following BMI values:
Underweight: less that 18.5
Normal: between 18.5 and 24.9
Overweight: between 25 and 29.9
Obese: 30 or greater
import java.util.Scanner;
public class BMI {
public static void main(String[] args) {
Scanner sc = new
Scanner(System.in);
System.out.println("Enter weight in
Kilograms: ");
double weight =
sc.nextDouble();
System.out.println("Enter height in
meters: ");
double height =
sc.nextDouble();
double bmi = weight / (height *
height);
System.out.println("BMI : " +
bmi);
if (bmi < 18.5)
System.out.println("Under weight");
else if (bmi >= 18.5 &&
bmi <= 24.9)
System.out.println("Normal");
else if (bmi >= 25 &&
bmi <= 29.9)
System.out.println("Overweight");
else
System.out.println("Obese");
}
}

Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me
Write a program to calculate the Body Mass Index (BMI). The formulae to calculate the BMI...
Create a BMI calculator applications that reads the user's weight in kilograms and height in meters, then calculates and displays the user's body mass index.Also, the application should display the following information from the Department of Health and Human Services, so the user can evaluate his/her BMI:BMI ValuesUnderweight: less that 18.5Normal: between 18.5 and 24.9Overweight: between 25 and 29.9Obese: 30 or greaterFormula for calculating BMI areBMI = weightInKilogramsheightInMeters x heightInMetersThe program is to be written in C++ langauge.I need some...
Using JAVAFX The application will calculate Body Mass Index (BMI) for people. It must be able to accept as input weights (in pounds or kilos), and height (in inches or centimeters). The application should have a calculate button, and should display the result as well as if the data puts the person in one of 4 categories underweight ( BMI < 18.5) , normal weight (BMI 18.5-24.9), overweight (BMI 25.0 - 29.9) or overweight (BMI > 30) For full credit...
OGICAL 28. Body mass index (BMI) is a measure of obesity. In standard units, it is calculated by the formula EMENTS BMI = 7032 ATEMENT NESTED INTS where Wis weight in pounds, and His height in inches. The obesity classification is BMI Classification Below 18.5 Underweight 18.5 to 24.9 Normal 25 to 29.9 Overweight 30 and above Obese Tue Write a program in a script file that calculates the BMI of a person. The program asks the person to enter...
Program 1 BMI Calculator Write a Java program to calculate the Body Mass Index (BMI) BMI can be calculated as follow BMI = (weight in pounds X 703) / (Height in inches X Height in inches)
/////////////////////////////////////////////////////////////////////////////////// //This program // 1. asks the user her/his weight and height // 2. then calculates the user's body-mass-index (BMI) // 3. and then prints an appropriate message based on the user's BMI /////////////////////////////////////////////////////////////////////////////////// #include <iostream> using namespace std; void printWelcome(); // ask the weight (in pounds) and height (in inches) of the user and store the values in formal // parameters weight and height, respectively void getWeightAndHeight(float& weight, float& height); // calculate and return the BMI (Body-Mass-Index) based on...
BMI is often used to determine whether a person with a sedentary lifestyle is overweight or underweight for their height. A person’s BMI is calculated with the following formula: BMI = (weight * 703) / height2 In the formula, weight is measured in pounds and height is measured in inches. Create a VB application to calculate a user’s BMI by allowing users to enter their weight and height in the appropriate units. Display their BMI with an appropriate control. Display...
5. A person's Body-Mass Index (BMI) is calculated by dividing weight (in kilograms) by height2 (in meters). According to the book, The Changing Body, the BMI values of non-Hispanic adult males in the United States are approximately Normally distributed with mean (μ)-265 and standard deviation (o)-4.0. Find the standardized scores associated with the thresholds between different categories. a. Underweight vs. Normal (BMI 18.5) b. Normal vs. Overweight (BMI 25) c. Overweight vs. Obese (BMI 30) 6. Combine the standardized scores...
python2.7
25 Points. Create a class named BMIGUI with the following behavior. A template has been provided for you and you cannot modify the template. You must use grid) to format the interface and you must get as close as possible the layout shown below. The entry box has a width parameter in its constructor you can use to make the box smaller 3. The BMI categories are as follows: Underweight= <18.5 Normal weight18.5-24.9 . Overweight 25-29.9 Obese BMI of...
1. Your Body Mass Index (BMI) is a measure of your weight relative to your height. The formula can be found here: http://www.whathealth.com/bmi/formula.html (use the Imperial U.S. Method). Write an algorithm in pseudocode to calculate and display a person's BMI accepting as input their height in feet and inches and their weight in pounds. The output of your algorithm should be as follows: a. BMI b. A statement of whether the result is underweight, normal, overweight or obese.
The body mass index (BMI estimates the amount of fat in a person's body. It is defined as the person's mass m in kilograms divided by the square of the person's height h in meters. Write the formula for BMI in terms of m and h. 0 BMI In the United States, most people measure weight in pounds and height in feet and inches. When weight W is measured in pounds and height h is measured in inches, the BMI...