In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of November 2nd
(this exercise will still be available for submission after that deadline, but without counting towards your grade)
[to understand the context of this problem, you should read the class #04 exercise sheet]


In this problem you should submit a function as described. Inside the function do not print anything that was not asked!

[IP026] Freezing in here

Brrr... It’s getting cold, isn't it? With the temperature dropping outside, you find yourself wondering: "Just how chilly is it in Fahrenheit?"

The Problem

Write a function named celsius_to_fahrenheit(celsius) that given a float indicating a temperature, returns its conversion from Celsius to Fahrenheit using the following formula: \[ F = \left( C \times \frac{9}{5} \right) + 32 \] where C is the temperature in Celsius and F is the temperature in Fahrenheit.

Constraints

The following limits are guaranteed in all the test cases that will be given to your program:

-273.15 ≤ celsius ≤ 1000       The temperature in Celsius

Example Function Calls Example Output
print( round(celsius_to_fahrenheit(-273.15), 2) )
print( round(celsius_to_fahrenheit(100),     2) )
print( round(celsius_to_fahrenheit(0),       2) )
-459.67
212.0
32.0


Introduction to Programming (CC1024)
DCC/FCUP - University of Porto