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]

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education