Implement yummy-toast?. Toast is yummy when it's white bread toasted to a level between 6 and 8 inclusive. (You or your class may have a different opinion. Define "yummy" however you like.)
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? (appropriately defined).
Define the datatype for bread (which is toast or bagel).
Implement yummy-bread?.
Choose a representation for toasters:
bread in the toaster
whether the toast/lever is 'down or 'up
Implement should-turn-on-toaster?. Don't turn on the toaster if it's already on, or if the bread is a bagel has cream cheese or isn't sliced, or if the bread is toasted more than level 6 already. (The implementation will involve new functions on bread, etc.)
Try to get at least as far as yummy-bread?. You probably won't have time to get through should-turn-on-toaster?.
Last update: Wednesday, September 3rd, 2003mflatt@cs.utah.edu