Saturday, June 26, 2021

Body Mass Index in Python

 
A simple program  that I wrote to compute the body mass index using Python programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.

My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.






Program Listing

# Body_Mass_Index.py
# Author : Jake Rodriguez Pomperada, MAED-IT, MIT
# Python
# www.jakerpomperada.com and www.jakerpomperada.blogspot.com
# jakerpomperada@gmail.com
# Bacolod City, Negros Occidental

print("===========================")
print(" Body Mass Index in Python ")
print("===========================")
print()

hf = float(input("Enter your height in feet: "))
hi = float(input("Enter your height in inches: "))

wkg = float(input("Enter you weight in kilograms: "))
hm = ((hf*30.48)+(hi*2.54))/100
bmi = wkg/(hm*hm)

print()
print("Your Body Mass Index is %.2f" %(bmi))
print()
print("End of Program")

No comments:

Post a Comment