Code Monkey home page Code Monkey logo

hrosicka / bmicalculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 259 KB

Take Charge of Your Health: Introducing the All-New BMI Calculator! This sleek and user-friendly desktop application empowers you to calculate your Body Mass Index (BMI) in a flash.

License: MIT License

Python 100.00%
bmi-calculator python calculator calculator-application desktop gui bmi bmicalculator desktop-app simple-app simple-calculator-python simple-program

bmicalculator's Introduction

BMICalculator

This user-friendly application is a Body Mass Index (BMI) calculator that allows you to calculate your BMI and view additional information about your BMI classification. Simply enter your age, height, and weight, and get your BMI with clear classification. Stay informed about your weight status with our user-friendly BMI calculator!

Main window

The main window consists of several sections:

  • Input Fields:
    • Age: Enter your age in years.
    • Height: Enter your height in centimeters (cm).
    • Weight: Enter your weight in kilograms (kg).
    • Gender: Select your gender (Male or Female).

  • Validation:

    • The application validates your input as you type. The background color of the input field will change to:
      • Green: Valid input
      • Yellow: Potentially invalid input
      • Red: Invalid input
  • Limits:

    • Limits are in place to ensure that the BMI calculation is accurate and reliable. If you enter a value outside of these limits, the application will display an error message.
Age

Age must be filled. The age limit is based on the fact that BMI is not a reliable measure of body fat for children under 10 years old or adults over 120 years old.

  • Minimum: 10 years
  • Maximum: 120 years

Height

Height must be filled. The height limit is based on the fact that BMI is not a reliable measure of body fat for people who are very short or very tall.

  • Minimum: 100 cm
  • Maximum: 250 cm

Weight

Weight must be filled. The weight limit is based on the fact that BMI is not a reliable measure of body fat for people who are very thin or very heavy.

  • Minimum: 40 kg
  • Maximum: 300 kg

  • Buttons:
    • More Info: (Initially disabled) This button becomes enabled only after a successful BMI calculation. Clicking this button opens a new window with detailed information about your BMI.
    • Clear: Clears all input fields and resets the results.
    • Calculate: Calculates your BMI based on your entered information.
    • Close: Closes the application.

Calculating BMI

  1. Enter your age, height, and weight in the corresponding fields.
  2. Select your gender using the radio buttons.
  3. Click the Calculate button.
  • If the input is valid, the application will calculate your BMI and display it in the results field.
  • If the input is invalid, the application will display an error message explaining the issue.

More Information

  • After a successful BMI calculation, the More Info button becomes enabled.
  • Clicking the More Info button opens a new window that displays detailed information about your BMI, including:
    • Your age, height, weight, and BMI.
    • Your BMI classification (e.g., Underweight, Normal Weight, Overweight, Obese).

Additional Features

  • The application uses a stylesheet (bmi.qss) to customize the appearance of the windows and buttons.
  • You can clear all your data and reset the application by clicking the Clear button.

bmicalculator's People

Contributors

hrosicka avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.