Saturday, March 12, 2022

Feet To Centimeter Converter in Python

 A simple program to ask the user to give value in feet and then the program will convert the given feet into centimeter equivalent 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 in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

Please subscribe to my channel  https://www.youtube.com/channel/UCOs-lpOoIeJoh6gpJthPoGg

Thank you very much for your support.





Program Listing

feet_centimeter.py

print();
print("Feet To Centimeter Converter in Python");
print();
feet = input("How many feet(s) : ")
value = float(feet)

def find_centimeters(value):
return float(value)* 30.48

print();

get_result = find_centimeters(value)
final_result = int((get_result * 100) + 0.5) /100.0

print("The equivalent value of ", value, " feet(s) in centimeters is "
,final_result,' centimeter(s).')
print();
print("End of Program")
print();

No comments:

Post a Comment