CS 101 Lecture 18 - Recursive Structures and Methods III

Class Examples:

  1. Two recursive methods for computing powers.

    Click on Powers to show the example.

  2. Here is an applet that draws spirals on the canvas.

    Click on Spiral to show the example.

  3. This applet draws a picture of "broccoli" recursively on the canvas.

    Click on Broccoli to show the example.

  4. This version allows the broccoli to be dragged around the screen.

    Click on BroccoliDrag to show the example.

  5. This version animates the drawing with pauses in between drawing.

    Click on LivingBroccoli to show the example.