ChristmasApplet
DescriptionChristmasApplet is a simple applet that prints the
"12 days of Christmas." Instead of simply printing all
of the text, it constructs all 12 verses using several
control structures.
Two versions are presented. One version uses 2 arrays and
for loops to construct the verses. The other version uses
an array, a for loop, and a switch statement to construct
the verses.
The solutions were designed during the JDE155 class, fall 2002,
Coding and the for-loop only version were done by Matt Johnson.
|