|
{Programming
III
}
|
||
| ASSIGNMENT
4 |
REMINDERS |
|||||
|
.Work
with the Marine Biology Case Study.
Using the MBCS wizard in CodeWarrior, create a MBCS project file for part II of the case study. Modify the class Fish so that it has the additional property to store a gender. Each Fish should be randomly assigned a gender when it is constructed. Change the display of the Fish based on its gender (e.g. Male Fish with lower case letters, Female Fish with upper case letters).
.Optional. Get the Fish to exhibit some behavior based on gender. For example, a Male Fish might follow a Female Fish, while a Female Fish runs away from a Male.
.Scoring. This program will be collected through the dropbox. I only need files Fish.h and Fish.cpp. Please make a folder and put only these two files in that folder, then drop that folder into the dropbox. There are a number of components to the scoring for this assignment. First is the addition of the new state variables (20 points), then the necessary modifications to the constructor (30 points) and then finally the necessary modifications to the display function (30 points). On top of all that, 10 points will be given if everything is formatted correctly, and another 10 for correctly submitting the necessary files.
.Resources. [ The Marine Biology Case Study ]
|
The disclaimer of posession is not necessary since you are modifying existing code. However, you must still acknowledge all collaborators by giving written credit. | |||||
| |
|
|
|
Last Updated: |