First Summer 2008


Homework One: Basic, basic Python programming.
Due date
Monday May 12, 11:59pm

Late policy
E-mail the solutions as a text file to Adrian by the due date.

Late submissions will be accepted for full credit if:

Work policy
Working in groups is encouraged but please turn in your own version of the assignment.

Also, please make sure you

with the Computer Science Department's Statement on Academic Integrity before turning in your assignment.

Task
  1. Write a program that converts Fehrenheit temperatures into Celsius temperatures. The Celsius equivalent of a Fahrenheit temperature is obtained by subtracting 32 from the Fahrenheit temperature and multiplying the result by 5 then dividing by 9. Your program should ask the user to enter the Fahrenheit temperature, calculate, then report the converted value (in Celsius).

  2. A point in plane has two coordinates: x and y. Write a program that asks the user for the coordinates of two points, then calculates and reports the distance between the two points. The distance between two points in the plane can be calculated by taking the square root of the sum of squared differences in x and y.
Grading
Feedback by e-mail should reach you in 12 hours from the time of your submission.

If feedback doesn't come contact Adrian by e-mail or phone and report it.

Grades will be posted within 24 hours of your submission on your individual blog.

Individual blogs will be activated Thu May 8 late at night and will be announced in class by e-mail and on the website.