Skip to content

An assignment for Mr. Simon's AP CS Principles class at Lowell High School, San Francisco, USA

Notifications You must be signed in to change notification settings

Computer-Programming-B/TemperatureConversion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Temperature Conversion

Your assignment is to write a program that converts a list of temperatures in Fahrenheit to Celsius and displays the result. The formula to convert Fahrenheit to Celsius is Celisus =(Fahrenheit-32)(5/9). You may find slides Computer Programming B slide presentation helpful. Your program will be very similar to the program shown on slide X.

Suggested Steps to complete this assignment:

  1. Log into codingrooms and find the TemperatureConversion assignment.
  2. Create a list of temperatures with code like temps = [212,32,-40]
  3. Create a for each loop to traverse the list and print() the numbers in the list to the screen
  4. Now add more print() statements to the for each loop that labels the temperatures, converts them to Celsius and displays the results. Remember that an extra argument end=' ' in a print() will end the line with a space rather than a newline character. Your output should look something like this.
    Temperature Conversion screenshot
  5. Submit a link to your python program to the google classroom assignment.

About

An assignment for Mr. Simon's AP CS Principles class at Lowell High School, San Francisco, USA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published