Showing posts with label Celsius To Fahrenheit Converter Using Functions in Python. Show all posts
Showing posts with label Celsius To Fahrenheit Converter Using Functions in Python. Show all posts

Thursday, March 17, 2016

Celsius To Fahrenheit Converter Using Functions in Python

A program that I wrote using Python as my programming language that will ask the user to give a temperature value in Celsius and then it will convert it to Fahrenheit equivalent using functions in Python.


If you have some questions please send me an email at jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.



Sample Program Output


Program Listing

print("");
print("Celsius To Fahrenheit Converter");
print("");
celsius = input("Enter temperature in Celsius : ")
temp = int(celsius)

def find_fahrenheit(temp):   
    return ((9.0/5.0) * float(temp)+32)

print("");

get_result = find_fahrenheit(temp)
final_result = int((get_result * 100) + 0.5) /100.0

print("The temperature ", temp, " in Celsius "
      ,final_result,' in Fahrenheit.')
print("");
print("End of Program")
print("");