Answered step by step
Verified Expert Solution
Question
1 Approved Answer
6.4.9 Temperature Converter Submit + Continue Save ourout main.py # Write your function for converting Celsius to Fahrenheit here. # Make sure to include a
6.4.9 Temperature Converter Submit + Continue Save ourout main.py \# Write your function for converting Celsius to Fahrenheit here. \# Make sure to include a comment at the top that says what Write a function that takes one parameter - a float which represents a temperature in Celsius - and \# each function does! returns a float which represents that temperature in Fahrenheit. Then, write a function that does the opposite conversion. def celsius (c) : f=(1.8C)+32 return f def farenheit (): c=32)/1.8 return c Here are the formulas for temperature conversion: print(celsius(0)) print(celsius(100)) F=(1.8C)+32 print(farenheit (40)) C=(F32)1.8 print (farenheit (80)) Finally, write some code below your functions that uses them to convert 0 degrees Celsius and 100 degrees Celsius to Fahrenheit, and to convert 40 degrees Fahrenheit and 80 degrees Fahrenheit to Celsius. Make sure to print your results to the console
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started