Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

** Use Python ** Complete the program by writing and calling a function that con

ID: 3744561 • Letter: #

Question

** Use Python ** Complete the program by writing and calling a function that converts a temperature from Celsius into Fahrenheit. Use the formula F = C x 9/5 + 32. Test your program knowing that 50 Celsius is 122 Fahrenheit.

Complete the program by writing and calling a function that converts a temperature from Celsius into Fahrenheit. Use the formula F Cx9/5+32. Test your program knowing that 50 Celsius is 122 Fahrenheit. 50 Load default template... 2 def c to f): 4 6 pass # Does nothing. Placeholder for function code # FIXME : Finish Run temp-c float(input('Enter temperature in Celsius: ')) = 7 temp-f: None Enter temperature in Celsius: 9 # FIXME : Call conversion function 10 #temp-f- ?? 12 # FIXME: Print result 13 # print ('Fahrenheit:' , temp-f) 14

Explanation / Answer

def c_to_f(c): return 32 + (1.8 * c) temp_c = float(input('Enter temperature in Celsius: ')) temp_f = None temp_f = c_to_f(temp_c) print('Fahrenheit:', temp_f)