Difference between revisions of "Section D 2017"
(→Extension of the Skeleton Program) |
(→Improvements) |
||
Line 9: | Line 9: | ||
# [[Reduce the reproductive rate of a rabbit with age]] {{done}} | # [[Reduce the reproductive rate of a rabbit with age]] {{done}} | ||
# [[ Add a way for a disease to kill rabbits in warrens]] {{done}} | # [[ Add a way for a disease to kill rabbits in warrens]] {{done}} | ||
− | # [[Implementing weather changes that affect animals]] | + | # [[Implementing weather changes that affect animals]] {{partially done}} |
− | # [[Storm or fire affects number of animals in a certain radius]] | + | # [[Storm or fire affects number of animals in a certain radius]] {{partially done}} |
# [[Validation for menu options for the coordinate input]] {{done}} | # [[Validation for menu options for the coordinate input]] {{done}} | ||
# [[Constraints for number of animals placed (when option two is selected)]] {{done}} | # [[Constraints for number of animals placed (when option two is selected)]] {{done}} |
Revision as of 21:22, 27 February 2017
Introduction
You are advised to spend no more than 70 minutes on this section. Questions will use the Skeleton Program and the Preliminary Material.
This page will identify some of the alterations / improvements that can be made to the skeleton program. It is important to explain what problem the alteration is tackling, and explain how to make the improvement itself.
Improvements
- Add the code to allow foxes to have a gender
- Make the probability of a rabbit dying increase with age, ie extra 5% per term
- Reduce the reproductive rate of a rabbit with age
- Add a way for a disease to kill rabbits in warrens
- Implementing weather changes that affect animals Needs Quiz
- Storm or fire affects number of animals in a certain radius Needs Quiz
- Validation for menu options for the coordinate input
- Constraints for number of animals placed (when option two is selected)
- Create extra presets, such as Rabbits Only or Fox Land of Plenty
- Display a message when a cell with no fox is selected for fox inspection...Adding a loop too
- Display a message when a cell with no warren is selected for warren inspection...Adding a loop too
- A fox moves in a random direction if they haven't eaten enough food that turn
- Foxes have a random chance to move towards the closest warren each time period
- If a fox eats more food than it needs its reproduction rate/coefficient increases
- Add an option on the menu to find the largest warren
- record data for totalDeadFoxes and totalDeadFoxesAge, then use these to generate the average age, and use to set lifespan of foxes
- Allow the capacity of a warren to vary, some warrens may be smaller and other may be larger
Extension of the Skeleton Program
One question is likely to focus on adding new features and functionality to the program.