Subsets Hints

  1. How many subsets does the empty set {} have?
  2. What should subsets report in the base case? This is a hard part to get right!
  3. How many subsets of {Pretzel, Apple, Orange, Banana} contain Pretzel? How many don't?
  4. Describe "the subsets of {Pretzel, Apple, Orange, Banana} that don't contain Pretzel" without using the words "don't contain."
  5. From the Snap! file menu, choose "Libraries..." at the bottom, then choose "List Utilities" to load append and other list operations.
  6. Here's one version of what the code might look like, with many spaces to fill…
  7. framework for subsets bloc