INTRODUCTION TO PROGRAMMING IN C++

Programming Project:
Implementing an Unbounded Ocean

Alyce Brady
Kalamazoo College


In this assignment you will create the Unbounded Ocean that the biologists want (see the Problem Statement at the beginning of Part 2 of the Marine Biology Case Study).* To do this, you will create an unordered list (apvector) of the fish in the ocean rather than keeping a matrix of defined and undefined fish in all possible environment positions. Much of the change is restricted to the Environment class, because you are changing the internal representation of the environment.

Adding Useful Operations to the Position and Environment Classes

Make Show independent of AllFish.

Modify the internal representation of the Environment.

Process fish in the right order.


*This lab was derived from the Advanced Placement Computer Science Marine Biology Simulation Case Study, available from the College Board for face-to-face teaching purposes.