The program below is the answer to Deitel’s Java How to Program (9th Edition) Chapter 2 Exercise 2.33.

Question: The Formulas for calculating BMI are:

BMI Calculator Formular

Create a BMI calculator that reads the user’s weight in pounds and height in inches (or, if you prefer, the user’s weight in kilograms and height in meters), then calculates and displays the user’s body mass index. Also, display the following information from the Department of Health and Human Services/National Institutes of Health so the user can evaluate his/her BMI:

BMI VALUES

Underweight: less than 18.5
Normal: between 18.5 and 24.9
Overweight: between 25 and 29.9
Obese: 30 or greater


Click here to see other answers to Java How to Program.

3 Comments

  1. simple code but i think it's very useful for other that need this, especially for a student that studying java

  2. Hi 5faya,
    If you understood the program above, I think you should be able to solve the problem yourself. Its just knowing the right formula and converting it to a java program or any other programming language.

    If you cannot solve it after trying it yourself, tell me the formula for calculating BFI and then I can help you.

  3. define application that compute person Body Fat Index “BFI”

    Do you have a solution for this problem ?

Write A Comment