BMI Below 18.5 18.5-24.9 25.0-29.9 30.0-34.9 35.0-39.9 Above 40 Weight status Underweight Normal weight Overweight Obesity class I Obesity class II Obesity class III
BMI Below 18.5 18.5-24.9 25.0-29.9 30.0-34.9 35.0-39.9 Above 40 Weight status Underweight Normal weight Overweight Obesity class I Obesity class II Obesity class III
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Body Mass Index is a simple calculation using a person's height and weight.
The formula is BMI = kg/m2 where kg is a person's weight in kilograms and m2 is their height in meters squared.
Calculate a persons Body Mass index using their weight in pounds.
This means you must first convert pounds to kilograms (kg) then apply the formula above.
In converting pounds to kg, 1 pound = 0.453592 kg.
So to convert pounds to kg, either multiply the pound value by 0.45359237 or divide by 2.2046226218.
Then you must convert their height in inches to meters.
The length in meters is equal to the inches multiplied by 0.0254.
- Write a program that accepts a users height as an integer in inches and
- their weight in pounds.
- Convert those inputs to their metric equivalents outlined above and determine their body mass index.
- Display what the conversions from and to their metric equivalents are.
- Display the body mass index and the category it belongs to.

Transcribed Image Text:BMI
Accepts input from the user.
Converts inputs to metric equivalents
Compute BN
Display conversions
Criteria
Display BMI
20 pts
Full Marks
Both inputs and performs correctly.
20 pts
Full Marks
Both conversions and performs correctly.
20 pts
Full Marks
20 pts
Both fields properly formatted
20 pts
Full Marks

Transcribed Image Text:BMI
Below 18.5
18.5-24.9
25.0-29.9
30.0-34.9
35.0-39.9
Above 40
Weight status
Underweight
Normal weight
Overweight
Obesity class I
Obesity class II
Obesity class III
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 2 steps with 1 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.Similar questions
Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education