Create a C program that will compute for the body-mass index of a given height and weight. After calculatin the BMI, the program will also tell under which category(underweight, normal weight, overweight,or obese) belongs to. The user will be given two (2) choices before entering the height and weight. The menu must loop repeatedly until the exit option is entered. a. Enter in kilogram and centimeters - This will ask for the weight in kilograms and height in centimeters. b. Enter in pounds and feet - This will ask for the weight in pounds and height in feet. c. Exit - Once chosen, the program must terminate.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question

C PROGRAM

BMI Calculator
Create a C program that will compute for the body-mass index of a given height and weight. After calculating
the BMI, the program willl also tell under which category(underweight, normal weight, overweight,or obese) it
belongs to.
The user will be given two (2) choices before entering the height and weight. The menu must loop
repeatedly until the exit option is entered.
a. Enter in kilogram and centimeters
- This will ask for the weight in kilograms and height in centimeters.
b. Enter in pounds and feet
- This will ask for the weight in pounds and height in feet.
c. Exit
- Once chosen, the program must terminate.
Transcribed Image Text:BMI Calculator Create a C program that will compute for the body-mass index of a given height and weight. After calculating the BMI, the program willl also tell under which category(underweight, normal weight, overweight,or obese) it belongs to. The user will be given two (2) choices before entering the height and weight. The menu must loop repeatedly until the exit option is entered. a. Enter in kilogram and centimeters - This will ask for the weight in kilograms and height in centimeters. b. Enter in pounds and feet - This will ask for the weight in pounds and height in feet. c. Exit - Once chosen, the program must terminate.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning