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]
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
Related questions
Question
C++
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images
Knowledge Booster
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
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr