Difference between revisions of "Section C AS 2017"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Improvements)
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
[[In InitialiseField the question to load an existing file only accepts Y and not y]]
 
[[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]]
 
[[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]]
 
[[You can read a file but can't write a file to save it]]
 +
 +
[[Add a feature to randomly scatter rocks over the field]]
  
 
[[Add code to have Severe Snow in SimulateWinter]]
 
[[Add code to have Severe Snow in SimulateWinter]]
  
 
[[Add code to have Severe Flood in SimulateAutumn]]
 
[[Add code to have Severe Flood in SimulateAutumn]]

Latest revision as of 09:59, 10 March 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

Add code to have Severe Snow in SimulateWinter

Add code to have Severe Flood in SimulateAutumn