Difference between revisions of "Section D 2017"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Introduction)
(Undo revision 476 by I'mnotthatguy (talk))
Line 1: Line 1:
[[File:Maxresdefault.jpg]]
 
 
=Introduction=
 
=Introduction=
 
You are advised to spend no more than 70 minutes on this section. Questions will use the Skeleton Program and the Preliminary Material.
 
You are advised to spend no more than 70 minutes on this section. Questions will use the Skeleton Program and the Preliminary Material.

Revision as of 11:17, 15 December 2016

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

  1. Add a way for a disease to kill rabbits in warrens
  2. Storm or fire affects number of animals in a certain radius
  3. Validation for menu options for the coordinate input
  4. Display number of rabbits born that period (This can be done if option 2 selected when advancing time period)
  5. Constraints for number of animals placed (when option two is selected)
  6. Display a message when a cell with no fox is selected for fox inspection...Adding a loop too
  7. Foxes have a random chance to move towards the closest warren each time period
  8. A fox moves in a random direction if they haven't eaten enough food that turn
  9. If a fox eats more food than it needs its reproduction rate/coefficient increases

Extension of the Skeleton Program

One question is likely to focus on adding new features and functionality to the program. With the skeleton program and the way it is written this is likely to be to create another prey animal for the fox. This section will document how to achieve this. Other extensions will also be covered over time.