Lab 3: Lottery Machine

Due Date: midnight Wednesday, September 24, 2002


Background:

This lab will provide you with another opportunity to work with classes and objects as well as arrays. Once you're done, you will use the Intro-CS Assignment Dropoff form to hand in your finished program.


What You'll Need

Nothing. You're writing this one from scratch.


Assignment

You are to write a set of classes that models a lottery machine similar to the lottery drawing seen on TV. A sample run will be shown in lecture on Thursday.

Specifications:

Think about your class design before coding your solution. Identify small classes that have well-defined behaviors (and the state needed to achieve that behavior). Avoid building an uber-class that does everything. If one of the behaviors does not seem to fit in with the others, it probably belongs in a separate class. You may wish to use a set of classes similar to the last lab.


Handing in your Solution

Your solution should be in the form of a .zip file. When we grade your solution we will unzip the folder and execute the Java files.

Use the Intro Programming dropoff form to submit your zip file.