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.

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

=MENU=====
[1] Enter in kilogram and centimeters
[2] Enter in pounds and feet
[3] Exit
Enter choice: 99
Invalid Choice! Try again!
=MENU===
==
[1] Enter in kilogram and centimeters
[2] Enter in pounds and feet
[3] Exit
Enter choice: 1
Enter weight: 55
Enter height: 165
Your BMI is 20.202021
You are normal
=MENU==
[1] Enter in kilogram and centimeters
[2] Enter in pounds and feet
[3] Exit
Enter choice: 3
Goodbye!
...Program finished with exit code 0
Press ENTER to exit console.
Transcribed Image Text:=MENU===== [1] Enter in kilogram and centimeters [2] Enter in pounds and feet [3] Exit Enter choice: 99 Invalid Choice! Try again! =MENU=== == [1] Enter in kilogram and centimeters [2] Enter in pounds and feet [3] Exit Enter choice: 1 Enter weight: 55 Enter height: 165 Your BMI is 20.202021 You are normal =MENU== [1] Enter in kilogram and centimeters [2] Enter in pounds and feet [3] Exit Enter choice: 3 Goodbye! ...Program finished with exit code 0 Press ENTER to exit console.
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 4 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