HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Lab6 - CEN/ECE/SWE > problem:


2012-11-10. 50568 - Body Mass Index Calculator

Lab6 - CEN/ECE/SWE

Start: Nov.07.2023 at 12:20:01 AM
Finish: Nov.14.2023 at 11:20:01 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (2)

Contest problems

• 50879 - Passed or Failed
• 50341 - Separate Into Digits
• 50798 - Passing the course
• 50797 - Nr of Missing Guests
• 50355 - Bills of City Water Company
• 50478 - Letter Grades
• 14-Fall1-20. 50480 - What quadrant ...
• 14-Fall1-60. 50482 - Bank Charges
• 2012-11-10. 50568 - Body Mass ...
• 3. 50391 - Cinema Tickets

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