Home | About | Calendar | Projects | Assignments | Classes | Resources
{Programming III }
     
 
ASSIGNMENT 3
 
REMINDERS
 
.Work with apmatrix.

I have created a project that uses apmatrix and placed it in "\\students\public\Science\Computer Science\c-300\materials\First look at apmatrix." This program creates two Fish, one with id 1 and another of id 2. When the initialize function is run, a fish with id 1 is placed in the matrix. Your job is to write function suchAFish() that takes an apmatrix and a Fish. You are to search through the apmatrix for a fish with the same id as target.

.Optional.

Write function remove, which works the same way as the suchAFish() function, but removes the fish from the apmatrix instead of simply verifying its existance.

[ The main that you are implementing ]

  You only need to implement function suchAFish(), which returns true if there is a Fish with the same id as Fish target and false if there is not.
 
Page prepaed by Christian Day.
Site design by Kelly Moran
BackForward
 
 
Last Updated: