CS 101 Lecture 4 - Conditionals

Class Examples:

  1. Let's improve our basketball game by adding something clearly missing from the first version -- a ball. And let's require that you have to drag the ball into the basket to score.

    Click on BetterBasketball to show the example.

  2. Let's "improve" our scribbler program by randomly choosing one of four colors for each scribble.

    Click on ScribbleRandomColors to show the example.