Question: 1.In C write a program that calculates the Body Mass Index (BMI) of the user. Prompt the user for their weight in pounds and height

1.In C write a program that calculates the Body Mass Index (BMI) of the user. Prompt the user for their weight in pounds and height in inches. Then calculate:

Write

BMI = (weight * 703.0)/(height*height) where weight is in pounds and height is in inches 

out the BMI (as a double), and then write out

  • underweight if BMI is less than 18.5,

  • normal if BMI is equal or greater than 18.5 but less than 25.0,

  • slightly overweight if BMI is equal or greater than 25.0 but less than

    30.0,

  • overweight if BMI is equal or greater than 30.0 but less than 40.0, a

  • obese if BMI is equal or greater than 40.0 .

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!