Now You Code 4: Temperature Conversion

Write a python program which will convert temperatures from Celcius to Fahrenheit. The program should take a temperature in degrees Celcius as input and output a temperature in degrees Fahrenheit.

Example:

Enter the temperature in Celcius: 100
100 Celcius is 212 Fahrenheit

HINT: Search the web to find the formula to convert from Celcius to Fahrenheit.

Step 1: Problem Analysis

Inputs:

Outputs:

Algorithm (Steps in Program):


In [1]:
# Step 2: write code here

Step 3: Questions

  1. Why does the program still run when you enter a negative number for temperature? Is this an error?

Answer:

  1. Would it be difficult to write a program which did the opposite (conversion F to C)? Explain.

Answer:

  1. Did you store the conversion in a variable before printing it on the last line? I argue this makes your program easier to understand. Why?

Answer:

Step 4: Reflection

Reflect upon your experience completing this assignment. This should be a personal narrative, in your own voice, and cite specifics relevant to the activity as to help the grader understand how you arrived at the code you submitted. Things to consider touching upon: Elaborate on the process itself. Did your original problem analysis work as designed? How many iterations did you go through before you arrived at the solution? Where did you struggle along the way and how did you overcome it? What did you learn from completing the assignment? What do you need to work on to get better? What was most valuable and least valuable about this exercise? Do you have any suggestions for improvements?

To make a good reflection, you should journal your thoughts, questions and comments while you complete the exercise.

Keep your response to between 100 and 250 words.

--== Write Your Reflection Below Here ==--