The body mass index, or BMI, is a measure of weight in relation to height. It is equal to the body weight in kilograms divided by the square of the height in meters. Write a program to compute the...


The body mass index, or BMI, is a measure of weight in relation to height. It is equal to the body weight in kilograms divided by the square of the height in meters. Write a program to compute the body mass index, given a weight in pounds and a height in inches. You can convert pounds to kilograms by dividing the number of pounds by 2.2. You can convert inches to meters by multiplying the number of inches by 0.0254. The program’s output could appear as follows:


Calculating the body mass index.


Enter weight in pounds: 130


Enter height in inches: 67


The weight is 130.0 pound(s) or 59.090909090909086 kilogram(s).


The height is 67.0 inches(s) or 1.7018 meter(s).


The body mass index is 20.40345116353166.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here