Guide to the worksheets

The standard worksheets listed below are listed in the recommended order in which they should be undertaken.

Exploring and editing code

The Elan IDE has a powerful 'code editor' which greatly simplifies the tasks of browsing, editing, and entering code. This worksheet is a good start point if you have never used Elan. You will explore and edit an existing program.

No prior knowledge is presumed.

What you will do in the course of completing the worksheet:

Open this worksheet

Random walk

Intended as a possible very first exercise in programming - you create a simulation of a random walk, which significant applications in many different fields of study: physics, biology, ecology, economics ..., even computer science.

Prior knowledge required: you do not need any prior knowledge of how to program, nor of the Elan language. You do need to understand how to use the code editor.

What you will do in the course of completing the worksheet:

Open this worksheet

Whack-a-mole

By creating a very simple version of the game 'Whack-a-mole' you will learn how to:

Open this worksheet

Merge sort

Your task is to write a function that sorts a list of strings alphabetically using the merge sort algorithm such that the pre-defined tests all pass. You may delegate part of the responsibility to an existing merge function (for merging two already-sorted lists). You are encouraged to adopt a recursive approach.

Unlike the worksheets above, this worksheet does not provide step-by-step guidance. However, the single step provides eight progressive levels of hint - and your aim is to complete the task using as few of those hints as you can.

Open this worksheet

Simon (game)

By creating a version of the once popular hand-held electronic memory game Simon you will learn:

Open this worksheet