Difference between revisions of "Section C AS 2017"

From TRCCompSci - AQA Computer Science
Jump to: navigation, search
(Improvements)
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]]
 +
 +
[[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]]

Revision as of 09:31, 3 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

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 code to have Severe Snow in SimulateWinter

Add code to have Severe Flood in SimulateAutumn