Answered step by step
Verified Expert Solution
Link Copied!

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 pleaseimage text in transcribed

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 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago