Saint Louis University |
Computer Science 146
|
Dept. of Math & Computer Science |
Topic: Darter Fish
Due:
11:59pm Tuesday, 23 April 2013
Related Reading: notes on inheritance
Please make sure you adhere to the policies on academic integrity.
You are to use our new inheritance framework to introduce a new kind of fish, which we name a DarterFish, into our simulation. A DarterFish should have the following behavior:
To get you started, we have created a new distribution of the code base, available as partIII.zip, or on turing at /Public/goldwasser/146/partIII
We have stubbed out files darterfish.h and darterfish.cpp, but the project will not compile as given.
We have also modified the driver so that the input data file can be used to specify which type each fish is (0=standard, 1=biased, 2=darter). In the example fish.dat file, fishes A-D are standard, E-H are biased, and I-L are darter.
Your assignment should be submitted electronically (details on the submission process).
For this assignments, you should only be modifying (and thus submitting) files darterfish.h and darterfish.cpp. Please also submit a "readme" text file that describes the changes you have made.