The BMI Calculator is a simple Java-based application designed to calculate the Body Mass Index (BMI) based on a user's height and weight.
It calculates BMI into two systems :
- Imperial System -> Weight in Pounds and Height in Inches.
- Metric System -> Weight in Kilos and Height in Meters.
This tool provides an easy way for users to determine their BMI and assess whether they fall into a healthy weight range.
The application uses a console-based interface for input and output and is ideal for learning basic Java programming concepts such as user input, conditional statements, and mathematical operations upto some concepts like classes , instances.
-
Calculate BMI: The user can input their height (in meters , inches) and weight (in kilograms , pounds), and the program will calculate their BMI using the formula:
-> Imperial : 703 * weight(in pounds) / (height * height) (in inches)
-> Metric : weight(in kilos) / (height * height) (in meters) -
BMI Categories: The program classifies the BMI result into categories such as:
-> Underweight (>= 0 and < 18.5)
-> Normal weight (>= 18.5 and < 25)
-> Overweight (>= 25 and < 30)
-> Obese (> 30) -
User Input Validation: The program checks if the user enters valid numeric values for height and weight.
-
Simple CLI Interface: The application is operated through a command-line interface, making it easy to run on any system with a Java environment.
- Java: The primary programming language used for implementing the BMI Calculator.
- Console Application: The application uses the console for input and output.
Contributions are welcome to improve the BMI Calculator!
Whether you're fixing a bug or improving the code quality, your help is highly appreciated.
Your feedback is crucial and appreciated.
If you have any suggestions, comments, or issues, please feel free to share.