Question: Write in C without using the math library just stdio.h 1. Write a C program that calculates the user's body mass index (BMI) and catergizes

Write in C without using the math library just stdio.h

Write in C without using the math library just stdio.h 1. Write

1. Write a C program that calculates the user's body mass index (BMI) and catergizes it as underweight, normal, overweight, or obese, based on the flowing table from the U.S. Centers for Disease Control and Prevention: BMI Weight Status Below 18.5 Underweight 18.5-24.9 Normal 25.0-29.9 Overweight 30.0 and above Obese Use the following formula to compute BMI (where w is weight in pounds and h is height in inches): 703 x w BMI = h2 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 (i.e. exit the program)

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!