Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Questionnaire | Schedule | Submit

Saint Louis University

Computer Science 146
Object-Oriented Practicum

Michael Goldwasser

Spring 2013

Dept. of Math & Computer Science

Assignment 07

Darter Fish

Overview

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.


Table of Contents


Your task

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.


Submitting your project

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.


Michael Goldwasser
CSCI 146, Spring 2013
Last modified: Tuesday, 16 April 2013
Course Home | Assignments | Computing Resources | Lab Hours/Tutoring | Questionnaire | Schedule | Submit