The united states center for disease control uses this to


You need help writing a BMI calculation C program that follows these guidlines. It must be a C program.

BMI Calculation:

One measurement of a person's fitness is their Body Mass Index. The United States Center for Disease Control uses this to classify people as normal, underweight, overweight, or obese, according to the following table:

BMI

Classification

Less than 18.5

Underweight

18.5 - less than 25

Normal

25.0 - less than 30

Overweight

30.0 and above

Obese

The formula that is used to calculate BMI is

BMI= (703xweight in pounds)/(height in inches)^2

You are to write a program which includes two functions:

A function (calculate_bmi), that takes as arguments a person's weight in pounds and height in inches (both doubles) and returns a bmi_index calculated with the above formula.

A function (print_bmi), that takes the value of the bmi and prints an appropriate message to the screen showing the bmi(using 1 decimal place) and the classification.

Your main will then

Ask the user for their weight and height.

Call the calculate_bmi function and store the result in a variable.

Call print_bmi function to output the results based on the calculated bmi. The function should tell the person how they are classified. You will be doing this through a series of nested if/else statements.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: The united states center for disease control uses this to
Reference No:- TGS02873618

Expected delivery within 24 Hours