Skip to content

This GitHub project calculates BMI and categorizes weight status based on user input, providing health insights.

Notifications You must be signed in to change notification settings

ibukuntolulope/BMI-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

BMI-Calculator

This GitHub project calculates BMI and categorizes weight status based on user input, providing health insights.

This project is a simple Python program designed to calculate a person's Body Mass Index (BMI) based on their weight (in pounds) and height (in inches). The program then provides a brief assessment of the individual's weight status.

Here's a breakdown of the program's functionality:

It prompts the user to enter their name, weight in pounds, and height in inches.

image

It calculates the BMI using the formula: BMI = (weight * 703) / (height * height)

It prints the calculated BMI.

It evaluates the BMI and provides a message to the user based on their BMI value:

If BMI is less than 18.5, it tells the user they are underweight. If BMI is between 18.5 and 24.9 (inclusive), it tells the user they have a normal weight. If BMI is between 25.0 and 29.9 (inclusive), it tells the user they are overweight. If BMI is between 30.0 and 34.9 (inclusive), it tells the user they are obese and humorously suggests they should exercise more and reduce sitting. If BMI is between 35.0 and 39.9 (inclusive), it tells the user they are severely obese. If BMI is 40.0 or higher, it tells the user they are morbidly obese. If the input values result in a BMI less than or equal to 0, the program prints "Enter valid input," indicating that the input provided is not valid.

image

Overall, this project is a basic example of using Python to calculate and interpret BMI for a user, providing feedback on their weight status based on input.

And from the information I provided, I had this feedback

image

About

This GitHub project calculates BMI and categorizes weight status based on user input, providing health insights.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published