Difference between revisions of "Section B AS 2017"
(→Variables & Constants) |
(→Functions / Procedures / Methods) |
||
Line 25: | Line 25: | ||
This section is to explain the structures within the skeleton program, use the pages below to explain each structure: | This section is to explain the structures within the skeleton program, use the pages below to explain each structure: | ||
+ | [[GetHowLongToRun - AS 2017|GetHowLongToRun]] | ||
+ | |||
+ | [[CreateNewField - AS 2017|CreateNewField]] | ||
+ | |||
+ | [[ReadFile - AS 2017|ReadFile]] | ||
+ | |||
+ | [[InitialiseField - AS 2017|InitialiseField]] | ||
+ | |||
+ | [[Display - AS 2017|Display]] | ||
+ | |||
+ | [[CountPlants - AS 2017|CountPlants]] | ||
+ | |||
+ | [[SeedLands - AS 2017|SeedLands]] | ||
+ | |||
+ | [[SimulateSpring - AS 2017|SimulateSpring]] | ||
+ | |||
+ | [[SimulateSummer - AS 2017|SimulateSummer]] | ||
+ | |||
+ | [[SimulateAutumn - AS 2017|SimulateAutumn]] | ||
+ | |||
+ | [[SimulateWinter - AS 2017|SimulateWinter]] | ||
+ | |||
+ | [[SimulateOneYear - AS 2017|SimulateOneYear]] | ||
+ | |||
+ | [[Simulation - AS 2017|Simulation]] | ||
==Structure Diagram== | ==Structure Diagram== |
Revision as of 12:01, 1 March 2017
Introduction
THIS SECTION SHOULD RELATE ONLY TO THE SKELETON PROGRAM FOR AS SUMMER 2017
You are advised to spend no more than 15 minutes on this section. Questions will refer to the Preliminary Material and the Skeleton Program, but will not require programming.
This section will ask you questions about the code itself and will test your knowledge of programming structures.
Skeleton Program
Constants
Remember constants once declared cannot be changed during runtime, they can only be changed by editing the program code first.
const char SOIL = '.';
const char SEED = 'S';
const char PLANT = 'P';
const char ROCKS = 'X';
const int FIELDLENGTH = 20;
const int FIELDWIDTH = 35;
Variables
Functions / Procedures / Methods
This section is to explain the structures within the skeleton program, use the pages below to explain each structure:
Structure Diagram
A structure / hierarchy diagram will go here
Programming Structures / Theory
You may be asked about the following programming techniques and asked to identify them in the skeleton program. Use the pages below to document examples within the skeleton program:
Variables - Scope of Variables - AS 2017