Skip to content

Latest commit

 

History

History
72 lines (58 loc) · 2.15 KB

README.md

File metadata and controls

72 lines (58 loc) · 2.15 KB

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.