Saint Louis University |
Computer Science 146
|
Dept. of Math & Computer Science |
Topic: The AquaFish class
Due:
11:59pm Monday, September 15
Related Reading: Pages 13-18 of case study
Please make sure you adhere to the policies on academic integrity.
You are to do Exercises 1, 3, 4, 5, 6, and 7 on page 18 of the case
study
For exercise 4, make appropriate modifications to the main routine as well, to demonstrate use of the new three-parameter constructor.
For exercise 7, rather than you asking someone else to introduce a flaw, we have taken the liberty of introducing several flaws. So as not to conflict with changes you may already be making to the source code, we have made a separate flawedI project for your use. In answering that question, please give an excerpt of the error messages produced by the compiler, an explanation of why it is complaining, and the remedy used to resolve the error.
You may copy the flawed source code to your own directory on turing by executing the following command from within your csci146 directory (Note well the period at the period at the end of the command):
cp -Rp /Public/goldwasser/146/flawedI .This will cause a new folder named flawedI to appear in your working directory including all files that you need for this assignment. Note: if you have a C++ compiler on your personal computer and wish to work directly on that computer, the necessary files may be downloaded here as flawedI.zip.
Your assignment should be submitted electronically (details on the submission process). This should include your summary prose document, as well as your modified versions of aquafish.h, aquafish.cpp, and aquamain.cpp files.