INFO I210: Optional Lab 12

Wildlife Simulation

This is an optional lab, which is not graded. Doing this work and turning it in will not directly increase your number of points for this class. However, it may indirectly improve your grade, by making you better prepared for the final exam.

Problem

The bears and fish simulation of chapter 11 is unrealistic: if the fish die out, the bears keep living, even though they have no food. See if you can fix this in a plausible way.

Please follow the Coding Standards, including the new rules of style added in Chapter 10.

Work on this with a team if you like.

Hints

Turning in Your Work

Submit a brief writeup explaining your solution, along with your code. Submit all code files needed to run the simulation as revised.

If you worked on a team, please submit only one copy from the team, with all of your names on it.

Feedback

This lab is not required and is not graded for points; but if you do turn it in, I will look at it and comment.