Programming

Audience Secondary
Level Year 7-10
Discipline Programming
Topics Procedures, Computational thinking, Decomposition, Logo, Scratch, Python

A collection of programming lessons covering flowcharts, procedures and more using Scratch and Python.


Procedures using Logo

This presentation introduces the concept of procedures by asking students to consider a procedure to be similar to a recipe.

Flowcharts

Flowcharts are introduced using the famous game Space Invaders.

Space Invaders using Scratch

This lesson takes students through creating a Space Invaders game using Scratch.

Racing game using Scratch

Continuing with Scratch, students are prompted to create their own customised racing game.

Python quiz

This PDF is a Python quiz. It covers some basic concepts and is useful as a refresher.

Decmial to binary

Python code example. Converts a decimal input into binary. Uses a while loop to iterate. Requires Python 3.

Morse code

Python code example. Converts between text and morse code both ways. Uses a dictionary to store letter-code pairs and a for loop. Requires Python 3.

Text adventure

Python code example. Simple text maze game reminiscent of the text-based adventures of old. Easily customisable location descriptions and item list. Uses an array to track the maze, a dictionary to store descrptions and some minor string manipulation. Requires Python 3.

Age calc

Python code example. Simple age calculator broken down into 10 steps. Requires Python 3.

Turtle shapes

Python code example. Uses the turtle graphics library to create shape-drawing functions. Requires Python 3 and TkInter.