Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 meters

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago