Program GR2

Functions and Subroutines

Your program should include the following functions as a minimum. The quantities that each function depends on should be parameters of the function. You may create additional functions and subroutines at your own discretion.

 Write a function for the rabbit birth efficiency. It depends only on the amount of food available per rabbit.

 Write a function for the rabbit starvation fraction. It depends only on the amount of food available per rabbit.

 Write a function for the fox birth efficiency. It depends on the number of dead rabbits available per fox.

 Write a function for the fox starvation fraction. It depends on the number of dead rabbits per fox.

Suggestions

 Write a function that calculates the number of rabbits alive at the end of the month.

 Write a function that calculates the number of dead rabbits at the end of the month.

 Write a function that calculates the number of foxes alive at the end of the month.

 

Previous Page | Home Page | Pest Management | Next Page