Question: answer using C programming Analyze and construct a C program to calculate the Body Mass Index (BMI) of the human body. Create a function name

answer using C programming
Analyze and construct a C program to calculate the Body Mass Index (BMI) of the human body. Create a function name cal_BMI that receives two parameters which are body weight body_weight (m Kg) of type float and body_height (in meter) of type float and return the value in type of float. In the main function, print table with four cohumms, the first cohinm is body weight in Kg, second cohun is body height in Meter, third cohmn is BM vahe obtain by calling the cal_BMI function and last cohmn is a text message that says "Underweight if BMI is less than 18.5, "Normal" if BMI is in range 18.5 to 24.9. "Overweight f BM is n range 25 to 29.9 and Obesity f BM is greater or equal 30. Use the following formula below to cakulate the BM. BMI = weight(kg) / (height(m) height(m)) Figure Q3(b) shows the sample output: Please enter weight in kg: 60.5 Please enter height in meter: 1.68 Weight (kg) Height (m) 60.5 1.68 BMI 21.4 Message Normal Press any key to continue... Figure Q3(b)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
