Section B AS 2017

From TRCCompSci - AQA Computer Science
Revision as of 12:02, 1 March 2017 by Admin (talk | contribs) (Variables)
Jump to: navigation, search

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:

GetHowLongToRun

CreateNewField

ReadFile

InitialiseField

Display

CountPlants

SeedLands

SimulateSpring

SimulateSummer

SimulateAutumn

SimulateWinter

SimulateOneYear

Simulation

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:

Constants - AS 2017

Variables - Scope of Variables - AS 2017

Selection - AS 2017

Repetition - AS 2017

Arrays - AS 2017

Functions - AS 2017

Subroutines - Methods - AS 2017

Parameter Passing - AS 2017