Arithmetic operators · 17 / 18 Exercise Easy

Convert Degrees Centigrade to Kelvin and Fahrenheit

Objective

The Celsius scale is centigrade, 100 divisions separate the freezing point from the boiling point of water. On the Fahrenheit scale of Anglo-Saxons, these two points are 180 degrees apart. The Kelvin scale is an absolute scale used in science.

Create a Python program to convert from degrees Celsius to Kelvin and Fahrenheit. Request the user the number of degrees celsius to convert them using the following conversion tables:

  • kelvin = celsius + 273
  • fahrenheit = celsius x 18 / 10 + 32

Instructions

  1. Ask the user for the amount of Celsius degrees to convert.
  2. Calculate the temperature in kelvin using the formula (celsius + 273).
  3. Calculate the temperature in fahrenheit using the formula (celsius x 18 / 10 + 32).
  4. Display the results of the conversion in kelvin and fahrenheit.
Input
33
Output
306
91.4

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise