Introducing the AQA AS level computer science Paper 1 Pre-release 2017 material
Plant Growth Simulation – Exploration of the pre-release skeleton program for Python
Learning objectives
Pre-release files
Download the following files from your school’s secure area according your teacher’s instruction:
Electronic Answer document
2017 Electronic Answer Document (EAD) 7516-1D.docx
Preliminary material
7516-1-PM-ComputerScience-AS-5Jun-AM-To E6.pdf
Skeleton Code
Paper1_ASLvl_2017_Python3_Pre.py
Additional file
File.txt
Preliminary material
Read through the preliminary material:
7517-1-PM-Computer Science-A-11Jun25-AM G4002.pdf
Think, pair and share your initial reflections
Run
Run the code: Paper1_ASLvl_2017_Python3_Pre.py
Do not look at the code at this stage. Run the simulation
Spend 10 minutes
Can you identify any areas of the simulation which does not work as you might expect?
Explain how the game works
Investigate the code
Investigate the code
View and open the code:
Paper1_ASLvl_2017_Python3_Pre.py
Spend a few minutes perusing the code
What are your initial thoughts?
Discuss with the class
The Game of Life
Rules
The game of life code is here
It is worth look at as it is a simple version of the plant simulation
.
A live cell with more than 3 live neighbours dies owing to over-crowding.
Complete the structure diagram
Simulation
SimulateOneYear
SimulateSpring
SimulateWinter
Complete the structure diagram
Simulation
InititaliseField
GetHowLongToRun
SimulateOneYear
SimulateSpring
SimulateAutumn
SimulateSummer
SimulateWinter
CountPlants
SeedLands
Display
ReadFile
CreateNewField
Data file
Explain these procedures and functions
Simulation | |
InitialiseField | |
ReadFile | |
CreateNewField | |
GetHowLongToRun | |
Add comments to the skeleton code explaining these procedures
Explain these procedures and functions
SimulateOneYear | |
Display | |
SimulateWinter | |
SimulateSpring | |
SimulateAutumn | |
SimulateSummer | |
CountPlants | |
SeedLands | |
Add comments to the skeleton code explaining these procedures
Exercise
Exercise
Make