Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C please 1. Write a C program that calculates the user's body mass index (BMI) and categorizes it as underweight, normal, overweight, or obese,
In C please
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: 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 xw 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. You can exit the program using 'return 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started