Setup

Under the Language menu, under Choose Language..., make sure that "How to Design Programs>Beginning Student" is selected. Also, use Language|Add Teachpack... and choose image.ss from the HtDP/2e set of teachpacks.

Exercise 1, Bullseye

Define a function, bullseye that accepts two colors and makes a five ring bulls-eye, alternating between those two colors. Use overlay to combine circles.

Exercise 2, That's an odd square

Define a function odd-square that accepts a positive integer and returns true if the number is both odd and a perfect square, and false otherwise. Don't worry about other types of input.

Exercise 3, The Eyes have it

Define a function face that accepts an eye color and returns a face with that eye color.

For example, (face 'blue) could be and (face 'green) could be