Section B AS 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;
Functions / Procedures / Methods
This section is to explain the structures within the skeleton program, use the pages below to explain each structure. Remember to identify the variables:
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