Difference between revisions of "Section B AS 2017"
(→Functions / Procedures / Methods) |
|||
(One intermediate revision by the same user not shown) | |||
Line 48: | Line 48: | ||
[[Simulation - AS 2017|Simulation]] | [[Simulation - AS 2017|Simulation]] | ||
+ | |||
+ | [[Main - AS 2017| Main]] | ||
==Structure Diagram== | ==Structure Diagram== | ||
Line 55: | Line 57: | ||
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: | 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: | ||
− | [[Constants - AS 2017]] | + | [[Constants - AS 2017|Constants]] |
− | [[Variables - Scope of Variables - AS 2017]] | + | [[Variables - Scope of Variables - AS 2017|Variables - Scope of Variables]] |
− | [[Selection - AS 2017]] | + | [[Selection - AS 2017|Selection]] |
− | [[Repetition - AS 2017]] | + | [[Repetition - AS 2017|Repetition ]] |
− | [[Arrays - AS 2017]] | + | [[Arrays - AS 2017|Arrays]] |
− | [[Functions - AS 2017]] | + | [[Functions - AS 2017|Functions]] |
− | [[Subroutines - Methods - AS 2017]] | + | [[Subroutines - Methods - AS 2017|Subroutines - Methods]] |
− | [[Parameter Passing - AS 2017]] | + | [[Parameter Passing - AS 2017|Parameter Passing]] |
Latest revision as of 09:23, 3 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;
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: