CPSC 120 Postlab 4: Something Fishy
Due Before Class on Monday October 3
Write a Java application to display a fish of a random color that fills up the
entire window (similar to the one above). The fish should completely fit in
the window and scale with the window when it is resized (if the user
drags the corner of the window to resize it to a tall, thin window,
then the fish should also resize to a tall, thin fish that fits in the window).
The fish must have a body, a tail, and at least 3 bubbles coming out of its
mouth.
Other Requirements
- You must use meaningful names for variables, constants, and
your class. Use Java conventions for case -- constants (declared
with final) are all uppercase (with the underscore separating words),
variables start with a lowercase letter (but each separate word
within the variable starts with a capital), the class name is
capitalized.
Choosing meaningful names makes your program easier to read and follow.
- Use white space (blank lines and blank spaces) in your program to make
it easier to read. Separate the sections of the program with blank lines.
Indent and align your code properly.
- Document your program. At the top you must have documentation that
includes the file name, a brief description of
what the program does, the date, and your name.
Use inline documentation to document each major section of code. However,
don't document every line!!
- See the following
code conventions for more detail about formatting
and documenting your program.
- Warning: A program that doesn't compile receives almost no credit
no matter how small the error.
Submission
To submit your code, create a zip file named YourLastName.zip and
upload the zip file to the course Inquire site.