Question: 2. A person's BMI (body mass index) is calculated with the following formula: BMI = Weight X 703 / Height Write a program that asks

 2. A person's BMI (body mass index) is calculated with the
following formula: BMI = Weight X 703 / Height Write a program
that asks the user to enter weight (pounds) and height (inches), then
calculates and outputs the BMI. The program should also print a message

2. A person's BMI (body mass index) is calculated with the following formula: BMI = Weight X 703 / Height Write a program that asks the user to enter weight (pounds) and height (inches), then calculates and outputs the BMI. The program should also print a message indicating whether the person has optimal weight (The BMI is between 18.5 and 25), is underweight (The BMI is less than 18.5), or is overweight (The BMI is greater than 25) User input should be validated. Print an error message if the input is invalid. You can combine two expressions using a logical operator AND OR)

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!