2. You are one of the gym instructors at AmiKenoMota. You decide to provide a customized diet and exercise plans based on the BMI of an individual. You measure the weight in kilograms and height in meters and calculate the BMI before a plan can be decided. Write a BMI function that takes in two values, weight in kg and height in cm and print the score along with the condition. (Make sure to convert cm into m before calculation) BMI(height, weight) BMI = kg/m² Based on the BMI score return the following output. < 18.5- Underweight • 18.5 - 24.9 - Normal • 25 -30 - Overweight > 30 – Obese Sample Input Sample Output (175, 96) (152, 48) Score is 31.3. You are Obese Score is 20.8. You are Normal

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 7PP: (Numerical) Heron’s formula for the area, A, of a triangle with sides of length a, b, and c is...
icon
Related questions
Question

Make sure you take inputs form user

2. You are one of the gym instructors at AmiKenoMota. You decide to provide a
customized diet and exercise plans based on the BMI of an individual. You measure
the weight in kilograms and height in meters and calculate the BMI before a plan
can be decided. Write a BMI function that takes in two values, weight in kg and
height in cm and print the score along with the condition. (Make sure to convert cm
into m before calculation)
BMI(height, weight)
BMI = kg/m?
Based on the BMI score return the following output.
• < 18.5- Underweight
• 18.5 - 24.9 - Normal
• 25 -30 - Overweight
• > 30 – Obese
Sample Input
Sample Output
(175, 96)
Score is 31.3. You are Obese
(152, 48)
Score is 20.8. You are Normal
Transcribed Image Text:2. You are one of the gym instructors at AmiKenoMota. You decide to provide a customized diet and exercise plans based on the BMI of an individual. You measure the weight in kilograms and height in meters and calculate the BMI before a plan can be decided. Write a BMI function that takes in two values, weight in kg and height in cm and print the score along with the condition. (Make sure to convert cm into m before calculation) BMI(height, weight) BMI = kg/m? Based on the BMI score return the following output. • < 18.5- Underweight • 18.5 - 24.9 - Normal • 25 -30 - Overweight • > 30 – Obese Sample Input Sample Output (175, 96) Score is 31.3. You are Obese (152, 48) Score is 20.8. You are Normal
Expert Solution
steps

Step by step

Solved in 3 steps with 1 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++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr