Search for question
Question

1. Write a C program that calculates the user's body mass index (BMI)

and categorizes it as underweight, normal, overweight, or obese, based

on the flowing table from the U.S. Centers for Disease Control and

Prevention:

Weight Status

Underweight

Normal

Overweight

BMI

Below 18.5

18.5-24.9

25.0-29.9

30.0 and above Obese

Use the following formula to compute BMI (where w is weight in

pounds and his height in inches):

BMI =

703 x w

Your program should prompt the user and then input the weight in

pounds and the height in inches.

If your calculation determines that the person is overweight or obese,.

prompt the user and then input the amount of weight they would like

to lose per week (in the range of 0.5-2 lbs. per week) and then print

how many weeks it would take before their weight is in the normal

range.

If they input any illegal values for any inputs just print an error mes-

sage and do nothing. You can exit the program using 'return 1'..

Fig: 1