Exercise 4

1 reply [Last post]
Joined: 12/10/2010

 In exercise 4 where it says to allow user to choose the % of new animals birth rate ... does that mean get user input over terminal?

Joined: 12/13/2010
I'm going to leave that

I'm going to leave that decision up to you :)
Terminal is an option, but not very elegant.  Alternatively, you can bind the % to keys on the keyboard so you can change the % while the simulation is running.  For example, let's say you start the simulation with a 10% reproduction rate for Tux.  You can have the + key increase the reproduction rate by 1%, and the - key to decrease the rate by 1%.  That way, you can observe the effect of the rate change.
This is just a suggestion, for the purpose of the exercise, any method is fine as long as the rates can be specified by the user.