This project provides an advanced BMI (Body Mass Index) calculator built using Python. It calculates the BMI, categorizes it, and offers additional features such as displaying a BMI chart and saving results to a file.
- User Input Validation: Ensures valid input for weight and height.
- BMI Calculation: Calculates BMI using the formula
BMI = weight / height^2
. - BMI Category Display: Categorizes the BMI value (Underweight, Normal weight, Overweight, Obesity).
- Graphical BMI Visualization: Displays a chart showing the BMI categories.
- Save Results: Allows the user to save their BMI results to a text file.
- Save Chart Option: If the GUI is unavailable, the chart can be saved as a
.png
file.
- Python 3.x
- Matplotlib (for chart plotting)
- Ensure Python 3.x is installed on your system.
- Install Matplotlib:
pip install matplotlib
- Clone Repository:
git clone https://github.com/GET-UNKNOWN-ERR0R/bmi-calculator.git cd bmi-calculator
- Run:
python3 bmi_calculator.py