Homework 1
Spring 2007
Due in class, Thursday., Jan 25
2 points
This homework is designed to get you thinking about algorithms.
For example, if we had a triangle pizza, we might write something like:
The advantage of doing this is that we've separated the procedure for calculating the price per square inch of a pizza from any set of specific numbers. To compute a new price per square inch, we simply reassign the variables that correspond to the cost and the size of the pizza, and apply the algorithm.
For our triangle pizza example, we might write something like: