HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50568 - Body Mass Index Calculator

Guest
• Review clarifications (2)

Section problems

• 50359 - Mode of a Series
• 50440 - Call Center
• 50353 - Cube of the Largest number
• 50336 - Buying Carpets
• 50295 - Weighted Average
• 50296 - Total Discount Rate
• 50289 - Monthly Allowance
• 50559 - Prime Factors of a Number
• 50568 - Body Mass Index Calcul...
• 50579 - Pentagonal Numbers
• 50584 - Total invoice amount
• 50634 - Perfect numbers
• 50635 - Decomposition into terms
• 50652 - Prime Factorization
• 50653 - Long Divide
• 50662 - Prime numbers (2)
• 50684 - Sum of prime numbers fro...

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