Skip to content

A repo containing the code of website that calculates BMI of a person and tells them how long it'll take for them to reach their target weight

Notifications You must be signed in to change notification settings

trident-lord/bmi-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

BMI Calculator

This is a simple BMI calculator implemented in HTML, CSS, and JavaScript.

Features

  • Calculates BMI based on user-provided height and weight.
  • Allows users to choose between metric (cm, kg) and imperial (inches, lbs) units.
  • Calculates approximate ideal weight (Note: This is a simplified calculation and may not be accurate for everyone).
  • Takes an optional target weight input and:
    • Validates the input.
    • Checks if the target weight falls within a healthy BMI range.
    • Estimates the number of days to reach the target weight based on a 500 calorie deficit per day.

How to Use

  1. Open the index.html file in your web browser.
  2. Enter your age, height, and weight in the respective fields.
  3. Select the appropriate units (cm/inches for height, kg/lbs for weight).
  4. Click the "Calculate BMI" button.
  5. Your BMI, ideal weight, and target weight analysis (if provided) will be displayed.

Disclaimer

This BMI calculator is intended for informational purposes only and should not be considered medical advice.

Note: The ideal weight calculation is a simplified formula and may not be accurate for everyone. Please consult a healthcare professional for personalized advice on healthy weight management.

About

A repo containing the code of website that calculates BMI of a person and tells them how long it'll take for them to reach their target weight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages