Assignment 3: Bizz Bazz Buzz and Screen Savers
This week we’re going to try out a new assignment emphasizing decomposition, random
value generation, animation, simple mouse event detection, and image manipulation.
programs we’re writing are increasingly complex, and eventually your assignments will be
to write a large single program exercising some new concepts.
This week, however, I want
to have you write one small-medium program and one medium-big program as a stepping-
stone to the assignment that’ll go out a week from today.
The first of the two programs is conceptually straightforward, but I map out a
decomposition scheme that we expect you to use.
In particular, I actually name the
methods you should implement in order so that you arrive at a working solution more
quickly than you might otherwise had I asked you to choose your own decomposition
The second program—probably the more entertaining of the two—is more open-ended in
that I don’t fully dictate how you should decompose your solution.
The program is large
enough that you absolutely must write some helper methods, but how you do that is largely
up to you.
Note that this assignment is due three days prior to your April 28
give you enough time to review your thoughts and prepare for the exam.
You’re of course
welcome to take a late day, but that means the assignment deadline moves in on the exam
date, so do so only if you’ll submit more polished work and feel better about the material.
Due: Monday, April 25
at 5:00 p.m.
Program 1: Bizz Bazz Buzz
Bizz Bazz Buzz is a multi-player game where everyone sits in a circle ala duck-duck-goose
and counts off consecutive numbers in a round robin manner.
One person says 1, the
person next to him says 2, the person next to her says 3, and so on in one big, merry loop.
Play continues until someone either takes too long or makes a mistake, and the person who
messes up leaves the circle and play resumes with those who remain.
Now, counting off numbers if fairly easy.
The game’s twist: whenever you get to a number
that’s a multiple of 3, 5, or 7 and/or includes any one of those three digits, you don’t say
the number itself, but you say something else.
The rules outlined below dictate what you
should say instead: