Skip to content

A simple and interactive BMI (Body Mass Index) Calculator built with Streamlit. Users can input their weight and height (in cm, meters, or feet) to calculate their BMI and receive health status feedback.

Notifications You must be signed in to change notification settings

kushals256/BMI-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

BMI Calculator

This project is a user-friendly Body Mass Index (BMI) Calculator built with Streamlit, a Python-based web application framework. The calculator allows users to input their weight and height in different units and calculates their BMI, providing instant feedback on their health status.


Features

  • Weight Input: Enter your weight in kilograms.
  • Height Input Options:
    • Centimeters
    • Meters
    • Feet
  • Real-Time BMI Calculation: The BMI is calculated as soon as the required inputs are provided, using the formula: [ BMI = Weight (kg) / [Height (m)]² ]
  • Health Feedback: Based on the calculated BMI, the app provides feedback in the following categories:
    • Extremely Underweight
    • Underweight
    • Healthy
    • Overweight
    • Extremely Overweight
  • Responsive Design: Works seamlessly on desktops and mobile browsers.

How to Run the App

  1. Clone the Repository
    Open a terminal and clone the repository to your local machine:

    git clone https://github.com/kushals256/BMI-Calculator.git
  2. Navigate to the Project Directory
    Change to the project directory:

    cd BMI-Calculator
  3. Install Streamlit
    If you don't have Streamlit installed, run the following command:

    pip install streamlit
  4. Run the Application
    Start the Streamlit app:

    streamlit run BmiCalc.py

    A local URL (e.g., http://localhost:8501) will appear. Open it in your browser to use the app.


Health Status Classification

The app categorizes your BMI as follows:

BMI Range Health Status
Less than 16 Extremely Underweight
16 - 18.5 Underweight
18.5 - 25 Healthy
25 - 30 Overweight
Greater than 30 Extremely Overweight

Technologies Used

  • Streamlit: For building the interactive web application.
  • Python: Core programming language for BMI calculations and logic.

About

A simple and interactive BMI (Body Mass Index) Calculator built with Streamlit. Users can input their weight and height (in cm, meters, or feet) to calculate their BMI and receive health status feedback.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages