Anatomy of a Recursive Block

For our tree block, we're going to point out various parts of the anatomy of a recursive procedure. The line numbers mentioned below refer to the picture at the right.
tree block with base case and numbered lines
  1. What would happen if we ran our tree block with a level input of less than 1? Think about it before you try it out.
  2. Sometimes you can make a recursive procedure more elegant by having a smaller base case. In our tree program, what would a "zero level" tree mean? Try rewriting tree so that the base case is level=0.
  3. See if you can make a tree like the first picture in this activity:

    beautiful tree

    It is different from what we have done so far because the smaller trees are drawn part way up the trunk, instead of at the top of the trunk, and because the pen color is green for the lowest-level branches (the tree1-like ones) and brown for the others. You do not have to get it exactly like the picture; just try to make a more realistic-looking tree.