Question
The formula for converting a temperature from Fahrenheit to Celsius is C=5/9(f-32) And the formula for converting from Celsius to Fahrenheit is F=9/5*C + 32
The formula for converting a temperature from Fahrenheit to Celsius is
C=5/9(f-32)
And the formula for converting from Celsius to Fahrenheit is
F=9/5*C + 32
Write a function named celsius that accepts a Fahrenheit temperature as an argument, and returns that temperature converted to Celsius. Write another function named fahrenheit that accepts a Celsius temperature as an argument, and returns that temperature converted to Fahrenheit.
Demonstrate the first function by calling it in a loop that display a table of Fahrenheit temperatures 0 through 20, and their Celsius equivalent. Demonstrate the second function by calling it in a loop that display a table of Celsius temperatures 0 through 20, and their Fahrenheit equivalent.
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