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

Overview Temperature can be converted from Celsius to Fahrenheit and Fahrenheit

ID: 663659 • Letter: O

Question

Overview

Temperature can be converted from Celsius to Fahrenheit and Fahrenheit to Celsius. The degree Fahrenheit (°F) is a unit of temperature. In the Fahrenheit scale of temperature the freezing point of water is 32 degrees and the boiling point is 212 degrees placing the boiling and melting points of water 180 degrees apart.

The degree Celsius (°C) is a unit of temperature. The Celsius temperature scale was designed so that the freezing point of water is 0 degrees and the boiling point is 100 degrees. If you know the Celsius or Fahrenheit you can convert the temperature using a mathematical equation.

Instructions

Complete Chapter 4 - Programming Challenge 6: Celsius to Fahrenheit Table

Write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting a temperature from Celsius to Fahrenheit is:

on python file

Explanation / Answer

def represent():
   print('Display of Temperature from 0 C to 20 C in Celsius and Fahrenheit ')
   print("Celsius           Fahrenheit")
   for i in range(21):
       f = 1.8*i + 32
       print (i+"           "+f)


represent()