Skip to content

BMI Calculator is a simple Android app developed in Kotlin that calculates Body Mass Index (BMI) based on user input for weight and height.

Notifications You must be signed in to change notification settings

Muhammad-Waseem1306/BMI_Calculator

Repository files navigation

BMI Calculator

This is a simple BMI (Body Mass Index) calculator Android app developed using Kotlin. The app calculates BMI based on user input for weight (in kilograms) and height (in meters). It also provides a BMI category based on the calculated BMI.

Features

  • BMI Calculation: The app calculates BMI using the standard formula: weight (kg) / height (m)^2.
  • BMI Category: Based on the calculated BMI, the app provides a category (Underweight, Normal weight, Overweight, or Obese).
  • Error Handling: The app checks for empty fields and invalid input (e.g., weight <= 0, height <= 0).
  • Unit Conversion: The app supports both metric (kg/m) and imperial (lb/in) units for weight and height.

Getting Started

To run this project on your local machine, follow these steps:

  1. Clone this repository: git clone https://github.com/Muhammad-Waseem1306/BMI_Calculator.git OR you can download zip file
  2. Open the project in Android Studio.
  3. Build and run the project on an emulator or physical device.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

Contact

For any inquiries or feedback, please contact [email protected] .

About

BMI Calculator is a simple Android app developed in Kotlin that calculates Body Mass Index (BMI) based on user input for weight and height.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages