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
icon
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.

  1. Write a program that accepts a users height as an integer in inches and
  2. their weight in pounds.
  3. Convert those inputs to their metric equivalents outlined above and determine their body mass index.  
  4. Display what the conversions from and to their metric equivalents are.
  5. Display the body mass index and the category it belongs to.  

 

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 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
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Software Systems
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
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education