Create a BMI calculator application 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, the application should display the following information from the Department of Health and Human Services/National Institutes of Health so the user can eval-
uate 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
We introduced the body mass index (BMI) calculator in Exercise 1.13. The formulas for calculating BMI are

```
#include
using namespace std; // program uses names from the std namespace
int main()
{
int weight, height; // variables to store weight and height
// prompt the user for their weight and height and read them in
cout << "Enter weight (lbs): ";
cin >> weight;
cout << "Enter height (in): ";
cin >> height;
// calculate bmi (rounds down due to integer division)
int bmi = ( weight * 703 ) / ( height * height );
cout << "\nYour BMI is: " << bmi << "\n\n"; // display user's BMI
// display BMI information table
cout << "BMI VALUES \n";
cout << "Underweight: less than 18.5 \n";
cout << "Normal: between 18.5 and 24.9\n";
cout << "Overweight: between 25 and 29.9 \n";
cout << "Obese: 30 or greater \n";
} // end main
```
You might also like to view...
Which statement is false?
a. Linked lists are collections of data items "lined up in a row"-- insertions and deletions can be made anywhere in a linked list. b. Insertions and deletions are made only at one end of a stack, its top. c. Insertions and deletions are made only at one end of a queue, its tail. d. Binary trees facilitate high-speed searching and sorting of data.
Which of these correctly defines a field in a class?
a. private INT count; b. public INT count; c. private int count = "HI"; d. private int count;
Adding a range of cells can be performed by clicking the SUM button in the Editing group of the Home tab
Indicate whether the statement is true or false
Your organization is formally adopting an incident response procedure. What is the first step of this?
A. respond B. detect C. report D. recover