Homework 1
Fall 2001
Due in class, Wednesday., Sep 12
2 points
This homework is designed to get you thinking about algorithms.
For example, if we had a triangle pizza, we may 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 may write something like: