SUTASK the user to enter his height in centimeters and weight in grams. You are required to write a C program to compute the Body-Mass-Index for a person. The specification of the program is as follows: 1. Ask the user to enter his name. 2. UTM & UTM Compute the BMI of the person is, BMI = kg/m². You need to write a function to calculate this, called BMI (). UTM & UTM UTM UT , ở UTM UTIF..else control structure. Print the class to the screen with the person's name. 4. Based on the following chart, determine the classification of the person's BMI using theT 8 UTM Weight [pounds] 90 110 130 150 170 190 210 230 250 270 290 310 330 5 UTM & UTM 350 6'6 Underweight BMI <183/ Nomal range BMI18 3-25 Overweight вм 25-50 19 Obese BMI>30 5 UTM 5 UT" 63 5 UTM & UTM 18 5 UTM & UT 8 UTM & UTM 16 & UTM 3 UT" 53 M 15 3 UTM 8 UTM 7 40 50 60 70 80 4'11 90 100 110 120 Weight [kilograms] 130 140 150 160 5 UTM 5 UT" Height [feet and inches]

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 19PE
icon
Related questions
Question

C++

You are required to write a C program to compute the Body-Mass-Index for a person. The
specification of the program is as follows:
BMI18 3-25 / BME 25-3o
UTM
1. Ask the user to enter his name.
2. Ask the user to enter his height in centimeters and weight in grams.
3. Compute the BMI of the person is, BMI = kg/m². You need to write a function to
.UTM & UTM
UTM &UTM
calculate this, called BMI ().
4. Based on the following chart, determine the classification of the person's BMI using the T
UTHF..else control structure. Print the class to the screen with the person's name.
UTM UT
UT
Weight [pounds]
90
110 130
150
170 190
210
230
250
270
290
310
5 UTM & UTM 7
330
350
6'6
Underweight
BMI<183/
Nomal range
BMI18 5-25
Overweight
вм 25-50
19
Obese
BMI>30
5 UTM 5 UT
63
5 UTM & UTM7
18
5'11
5 UTM & UT
3 UTM & UTM
16
5 UTM 3 UT
53
M
15
5 UTM & UTM 7
40
50
60
70
80
90
4'11
100
110
Weight [kilograms]
120
130
140
150
160
5 UTM UT
Height [feet and inches]
Transcribed Image Text:You are required to write a C program to compute the Body-Mass-Index for a person. The specification of the program is as follows: BMI18 3-25 / BME 25-3o UTM 1. Ask the user to enter his name. 2. Ask the user to enter his height in centimeters and weight in grams. 3. Compute the BMI of the person is, BMI = kg/m². You need to write a function to .UTM & UTM UTM &UTM calculate this, called BMI (). 4. Based on the following chart, determine the classification of the person's BMI using the T UTHF..else control structure. Print the class to the screen with the person's name. UTM UT UT Weight [pounds] 90 110 130 150 170 190 210 230 250 270 290 310 5 UTM & UTM 7 330 350 6'6 Underweight BMI<183/ Nomal range BMI18 5-25 Overweight вм 25-50 19 Obese BMI>30 5 UTM 5 UT 63 5 UTM & UTM7 18 5'11 5 UTM & UT 3 UTM & UTM 16 5 UTM 3 UT 53 M 15 5 UTM & UTM 7 40 50 60 70 80 90 4'11 100 110 Weight [kilograms] 120 130 140 150 160 5 UTM UT Height [feet and inches]
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr