HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


050. 50568 - Body Mass Index Calculator

Guest
• Review clarifications (2)

Volume problems

• 028. 50521 - Pound to Grams
• 030. 50341 - Separate Into Digits
• 034. 50502 - Welcome Andi - 1
• 040. 50879 - Passed or Failed
• 040. Problem 1
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 050. 50568 - Body Mass Index ...
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 055. 50355 - Bills of City Water Co...
• 060. 50583 - Max of 3 numbers
• 062. 50402 - Hello World!
• 063. 50547 - Close Pair
• 065. 50436 - Pocket Money
• 068. 50581 - The roots of a quadrati...

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