Answer to Question #287426 in Python for Rox

Question #287426

For every program, there should be a softcopy file containing (i) Algorithm/Flowchart, (ii)


Source Code, (iii) Output



Q.Write a menu driven program to convert the given temperature from Fahrenheit to Celsius and vice


versa depending upon users choice.

1
Expert's answer
2022-01-17T16:12:15-0500

Program to Convert Celsius To Fahrenheit


celsius = float(input("Enter temperature in celsius: "))
fahrenheit = (celsius * 9/5) + 32
print('%.2f Celsius is: %0.2f Fahrenheit' %(celsius, fahrenheit)

Program to Convert Fahrenheit to Celsius



fahrenheit = float(input("Enter temperature in fahrenheit: "))
celsius = (fahrenheit - 32) * 5/9
print('%.2f Fahrenheit is: %0.2f Celsius' %(fahrenheit, celsius))




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS