Sample Programming Assignment
Chapter 13
Pond Life Simulation
- The Assignment:
- Start by reading and understanding the pond life program from
http://www.cs.colorado.edu/~main/applications/PondLife.java
. The program is also discussed in Section 13.2 of the
text and there is documentation at
http://www.cs.colorado.edu/~main/docs/PondLife.html.
Modify the program so that there is a new fish-eating predator
(perhaps alligators...they do eat fish, don't they?), and
a plant-eating fish, and the plants. You'll need to implement
a Carnivore class that extends the Animal class.
- Before Starting:
- Read Sections 13.1 and 13.2.
- Other files that you may find helpful:
-
-
The
Organism
Documentation
-
The
Plant
Documentation
-
The
Animal
Documentation
-
The
Herbivore
Documentation
Michael Main
(main@colorado.edu)