|
6.001 Tutorial 2Gerald Dalley Lambdas Review
Substitution Model
Recursion and Iteration
ProblemsGeneral Problems
Biggie SizeSuppose we're designing an point-of-sale and order-tracking system for Wendy's†. Luckily the Über-Qwuick drive through supports only 4 options: Classic Single Combo (hamburger with one patty), Classic Double With Cheese Combo (2 patties), and Classic Triple with Cheese Combo (3 patties), Avant-Garde Quadruple with Guacamole Combo (4 patties). We shall encode these combos as 1, 2, 3, and 4 respectively. Each meal can be biggie-sized to acquire a larger box of fries and drink. A biggie-sized combo is represented by 5, 6, 7, and 8 respectively.†6.001 and MIT do not endorse and are not affiliated with Wendy's in any way. They merely capitalize on the pleasant way "biggie-size" rolls off the tongue.
|
Last updated: 2008-01-25 09:23:57 -0500 |