Question: We introduced the body mass index (BMI) calculator in Exercise 1.10. The formulas for calculating BMI are or Create a BMI calculator that reads the

We introduced the body mass index (BMI) calculator in Exercise 1.10. The formulas for calculating BMI are

BMI = weightIn Pounds x 703 heightInInches x heightInInches

or

BMI weightIn Kilograms heightInMeters x heightInMeters

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 BMI categories and their values from the National Heart Lung and Blood Institute http://www.nhlbi.nih.gov/health/educational/lose_wt/BMI/bmicalc.htm so the user can evaluate his/her BMI.

Exercise 1.10

By recent estimates, two-thirds of the people in the United States are overweight and about half of those are obese. This causes significant increases in illnesses such as diabetes and heart disease. To determine whether a person is overweight or obese, you can use a measure called the body mass index (BMI). The United States Department of Health and Human Services provides a BMI calculator at http://www.nhlbi.nih.gov/guidelines/
obesity/BMI/bmicalc.htm. Use it to calculate your own BMI. An exercise in Chapter 2 will ask you to program your own BMI calculator. To prepare for this, research the formulas for calculating BMI.

BMI = weightIn Pounds x 703 heightInInches x heightInInches

Step by Step Solution

3.18 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

It looks like you want to create a simple Body Mass Index BMI calculator whic... View full answer

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 Java How To Program Late Objects Questions!