Implement manhattan-distance, which takes a posn
and returns the number of “blocks” from the origin to the posn,
which is the sum of the posn’s x- and y-coordinates.
Implement walk-south, which takes a posn and
returns a posn that is like the given one, but with the y-coordinate
incremented by 1.
Choose a representation for toast:
kind of bread: white or wheat
toastedness, on a scale of 0 to 10
Implement yummy-toast?. Toast is yummy when
it’s white bread toasted to a level between 6 and 8 inclusive.
Implement toast-more, which takes some toast and makes
it more toasted, if possible.
Choose a representation for bagels:
whether the bagel is sliced
whether the bagel has cream cheese
toastedness, on a scale of 0 to 10
Implement yummy-bagel? (specified however you like—examples should clarify).
Last update: Wednesday, October 20th, 2010mflatt@cs.utah.edu