Lab 15 - 4/25/03
Partnered Lab - Hand in on paper (you can print this if the printer
works, but do not count on it)
Today's lab is one of analysis. You are to go to the college
board website (here)
and download and decompress the partii.zip file. (if that does
not work, you will have to manually download the files one by one as
individual files) Inside are all of the files for the part 2 of
the advanced placement computer science marine biology case
study. The code does not yet compile (trying to figure out if
this is the AP people's fault or Microsoft's fault, or more likely both
parties' fault), so you're going to have to figure things out using
your knowledge of C++. For the purposes of this lab you need to
figure out how to modify the case study to do the following (and do it
in two parts):
The case study is just not violent enough! Bottom line, we NEED
violence here! I'm actually going to leave it to you how to
decide to implement the violence. You can decide if you want the
fish to have death matches against each other when/if they meet, or if
they simply hurt each other. One way or another you will either
need to keep track of if the fish is dead or not, or how much the fish
is hurt. The rest I'm leaving to you. Be creative!
Part 1 of this assignment is to describe A) how the violence will occur
in your modified case study 2 and then B) what you will need to do in
order to implement it. (what files need to be modified, what
methods need to be added, what ones need to be modified, what variables
need to be added, etc)
Part 2 of this assignment is to implement those changes. (well
implement them without being able to run them..) For the purposes
of this assignment please make it clear what lines of code are your own
(put a remark before and after your lines so I know it's yours) .
ONLY give me the files that have changed. (for instance, no need
to give me randgen.cpp or randgen.h)