HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50568 - Body Mass Index Calculator

Guest
• Review clarifications (2)

Section problems

• 51028 - Isosceles Triangles
• 51031 - Convert from Hex to Dec
• 51030 - Number of Right Triangles
• 50553 - Divisible by m
• 50554 - nth power of m
• 50557 - nth Power of m (Long Multiply)
• 50559 - Prime Factors of a Number
• 50565 - Binary numbers
• 50568 - Body Mass Index Calcul...
• 50571 - Armstrong Numbers - 2
• 50572 - Palindromic Numbers
• 50574 - Triangular Numbers
• 50578 - Mersenne prime
• 50579 - Pentagonal Numbers
• 50581 - The roots of a quadratic eq...
• 50582 - Number of digits
• 50583 - Max of 3 numbers

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

Body Mass Index Calculator

Shqip

Body Mass Index is used to measure the body fat based on the height and weight: www.nhlbisupport.com/bmi/ By recent estimates, two-thirds of the people in the United States are overweight and about half of those are obese. This causes significant increases in illnesses such as diabetes and heart disease. BMI can be calculated using the following formula:

BMI = weightInKilograms / (heightInMeters * heightInMeters)

BMI Values
      Underweight: less than 18.5
      Normal: between 18.5 and 24.99999
      Overweight: between 25 and 29.99999
      Obese: 30 or greater
Write a program that is going to get heightInMeters and weightInKilograms, then it's going to calculate and BMI and related BMI value.

Input specification
There are only two numbers: one float and integer.

Output specification
Show BMI (double) that is going to be followed by BMI value.
Note: You can submit regular double result the program is going to take only the first three digits after the floating point. The program uses
if (abs(yourCalculatedAverage-expectedAverage)>0.001) return ERROR; to decide if given result is correct or not.

Sample Input:
1.7 70

Sample Output:
24.221 Normal

Для отправки решений необходимо выполнить вход.

www.contester.ru