Question: Programming Session A health clinic would like a program that will enable their clients to enter their name, their body weight and their height. The

Programming Session

A health clinic would like a program that will enable their clients to enter their name, their body weight and their height. The program will return their BMI (body mass index), as well as their name, and submitted data. Usually the client will enter their weight in pounds and ounces and their height in feet and inches. If their BMI is greater than 30, they should be told they are obese. If their BMI is between 25 to 29.9, they should be told they are overweight. If their BMI lies between 18.5 and 24.9, they should be told they are normal. If their BMI is below 18.5, they should be told they are underweight.

To calculate Body Mass Index using the metric units, the body weight in Kilograms is divided by the square of the height in meters. Units would be kg/m2.

To calculate Body Mass Index using the English units, the body weight in pounds is divided by the square of the height in inches multiplied by 703.

See: https://www.freebmicalculator.net/calculate-bmi.php

metric units: BMI = Weight(kg) / (height (m) * height(m))

english units: BMI = Weight (lb) / (height (in) * height (in))

To convert from pounds to kilograms, use the conversion factor of 1kg = 2.2lb.

To convert from feet to meters, use the conversion factor of 1 m = 3.2808 feet.

To convert an ounce to a pound, use the conversion factor of 1 lb = 16 oz.

To convert an inch to a foot, use the conversion factor of 1 foot = 12 in.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!