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

Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter7: Knowledge Management And Specialized Information Systems
Section: Chapter Questions
Problem 8SAT
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
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning