Question: In C++ using CodeBlocks Write a function that calculates and returns a person's Body Mass Index (BMI) when given the person's height in meters and
In C++ using CodeBlocks

Write a function that calculates and returns a person's Body Mass Index (BMI) when given the person's height in meters and weight in kilograms as arguments. A person's BMI is the ratio of their weight in kilograms to their height squared in meters Your BMI function must be prototyped as follows double bmi (double height_m, double weight_kg) Page 1 of 3 Write a function that converts a weight in pounds received as an argument to a weight in kilograms and returns the weight in kilograms to the calling function Your conversion function must be prototyped as follows double toKilograms (double pounds) Write a function that converts a length in feet and inches to a length in meters. Make sure your function accepts real values for both feet and inches as arguments Use your functions in a program that gets a person's height in feet and inches and weight in pounds from the user and calculates and displays the person's BMI with information about the BMI categories described by the NIH. Round your BMI to exactly one digit to the right of the decimal point for display Make sure each function definition is preceded by a descriptive comment. Do not define any variables globally. Pass data between functions using arguments/parameters and the return mechanism Make your output look as much like the sample output provided below as possible Sample Output 1 Enter your height [Use format ft-in]: 5-10.5 Enter your weight in pounds: 185 BMI26.2 BMI Categories: K18.5Underweight 18.5-24.9 Normal weight 25-29 , 9 Overweight 30 > Obesity Sample Output 2 Enter your height [Use format ft-in]: 6-12 Enter your weight in pounds: 235 BMI23.4 BMI Categories:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
