class variables

"I Spy" or "Where's Waldo" Graphical Quiz Game

Submitted by Kenrick on Sat, 03/08/2008 - 23:10.
Mar 9 2008 - 12:10am
Etc/GMT-8
computerIdentify.png

In this assignment the program displays an image of the student's choice. The user then has to click on the image to find three items. I like to use this after we've covered if-then-else statements and the difference between local variables and class variables. In class I give students a template for how to display an image and get the location of a mouse click so they can complete the assignment earlier in the semester.

The fun part is students select some interesting items for their quiz. I've gotten quizzes to identify parts of a cricket, a human skull, areas of a star, species of fish, and many more.

Assignment: Graphical Quiz

Add to calendar