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.
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.
mainSimulation function to make the world with 25 instead of 50. This will increase the crowding of the world, making it easier for bears to find and catch fish. Without this, you may not observe the fish dying out.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.
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.