Answered step by step
Verified Expert Solution
Question
1 Approved Answer
THIS IS USING C++ Pay special attention to the style of your code. Indent your code correctly, choose meaningful names for your variables, define constants
THIS IS USING C++
Pay special attention to the style of your code. Indent your code correctly, choose meaningful names for your variables, define constants where needed, choose most suitable control statements, etc.
uestion 6: Body mass index (BMI) is a number calculated from a person's weight and height using the following formula: weight/height2. Where weight is in kilograms and height is in meters According to the Centers for Disease Control and Prevention, the BMI is a fairly reliable indicator of body fatness for most people. BMI does not measure body fat directly, but research has shown that BMI correlates to direct measures of body fat, such as underwater weighing and dual-energy X-ray absorptiometry The following table gives the weight status in respect to the BMI value: BMI Range Below 18.5 [18.5, 25) [25, 30) 30 and above Weight Status Underweight Normal Overweight Obese Write a program that prompts for weight (in pounds) and height (in inches) of a person, and prints the weight status of that person. Your program should interact with the user exactly as it shows in the following example Please enter weight (in pounds): 135 Please enter height (in inches): 71 The weight status is: Normal Note: 1 pound is 0.453592 kilograms and 1 inch is 0.0254 metersStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started