Skip to content

BMI (Body Mass Index) Calculator for the people to check whether they are Under-Weight , Normal Weight , Over-Weight or Obese.

Notifications You must be signed in to change notification settings

PriyanshuJajal/BMI-Calculator-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BMI-Calculator-Java

Overview

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 :

  1. Imperial System -> Weight in Pounds and Height in Inches.
  2. 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.

Features :

  1. 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)

  2. 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)

  3. User Input Validation: The program checks if the user enters valid numeric values for height and weight.

  4. Simple CLI Interface: The application is operated through a command-line interface, making it easy to run on any system with a Java environment.

Technologies Used :

  1. Java: The primary programming language used for implementing the BMI Calculator.
  2. Console Application: The application uses the console for input and output.

Contribution :

Contributions are welcome to improve the BMI Calculator!
Whether you're fixing a bug or improving the code quality, your help is highly appreciated.

Feedback :

Your feedback is crucial and appreciated.
If you have any suggestions, comments, or issues, please feel free to share.

About

BMI (Body Mass Index) Calculator for the people to check whether they are Under-Weight , Normal Weight , Over-Weight or Obese.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages