Section C AS 2017
Introduction
Questions will use the Skeleton Program and the Preliminary Material, and you will be expected to carry out tasks on the skeleton program in your examination.
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
The number of years should be between 0 and 5 but no validation takes place
In InitialiseField the question to load an existing file only accepts Y and not y
Change SimulateOneYear to ask if you want to view by season or by year
Allow the user to quit or re run the simulation
Change ReadFile so it asks to re-enter the filename if it was incorrect
You can read a file but can't write a file to save it
Add a feature to randomly scatter rocks over the field