Lab 14 - 4/23/03
Individual 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. 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 answer the following questions about how the case study
works (or should work).
Question 1: How are the fish sorted in the matrix, which file has the
sorting method, and what kind of sort is used?
Question 2: Describe (in your own words) what the AllFish method in
environ.cpp does, how it does it, and what other files use this and how
do they use it? (ie: expand on the documentation already in the
files, and figure out where this method is used elsewhere, and how does
that help those methods)
Question 3: Where is the position method Equals implicitly used (in the
overloaded version) in other files? Why is it imporant that it is
called when it is called? (what are they using it for?)
Question 4: What information is sorted in fish.dat, where is it read
in, and what is it used for?