/BMI-shortcut-methods

This Java program is a simple application that calculates the body mass index (BMI) based on user input of weight and height. After calculating the BMI, it categorizes it into three categories: underweight, normal, or obese.

Primary LanguageJava

Basic Method For Body Index Calculation

This Java program calculates the body mass index (BMI) based on the user's weight and height input. It then categorizes the BMI into underweight, normal weight, or obese categories.

Usage

  1. Input: Users are prompted to enter their weight in kilograms (Kg) and height in meters (m).

  2. Calculation: The program calculates the BMI using the formula: weight / (height * height).

  3. Classification:

    • If BMI is less than 18.5, it's categorized as "Underweight".
    • If BMI is between 18.5 and 24.9, it's categorized as "Normal".
    • If BMI is greater than 30, it's categorized as "Obese".

Contributors

  • Furkan Aydemir
  • deerborg

Version History

  • Version: 1.0
  • Release Date: 2024

License

This project is licensed under the MIT License - see the LICENSE.md file for details.