Blog Archives

BBC micro:bit – Stopwatch

In this challenge we are going to create a Stopwatch (Countdown timer) using the BBC micro:bit. You do no need a micro:bit to complete this challenge as you can use the online block editor and emulator (www.microbit.co.uk) to code and

Solar System

In this blog post we will use Glowscript to create a 3D animation representing the revolution of the Earth around the Sun, and of the Moon around the Earth. Earth Revolution First, let’s calculate the angle of rotation needed to

3D Tetris Shapes

In this blog post we will use Glowscript to create a 3D animation representing the various shapes used in a game of Tetris. Our aim is to recreate each shape by joining several cubes together. We will then create a

3D Molecules

In this blog post we will use Glowscript to create a 3D animation representing the molecule H2O. Our aim is to recreate the molecule by joining three spheres together (one sphere for each atom). We will then create a compound

3D Animation : Moon Phases

In this blog post we will use Glowscript to create a 3D animation representing how we perceive the moon from Earth throughout its cycle. Our aim is to represent a 3D sphere and to progressively change the direction of the

Coding Puzzles

Complete the following coding puzzles by drag and dropping the lines of codes in the correct order to recreate basic computer programs. Click on picture below to access the coding puzzles:

The Collatz Conjecture

The Collatz conjecture is a famous mathematical mystery that has yet to be solved. It is named after Lothar Collatz a German mathematician, who first proposed it in 1937. It is based on the following number sequence: Start with any

Merry Christmas

For this challenge we are going to create Christmas Cards using Python turtle. We will use the random library to create unique cards. Starry Night Our first card consists of creating a starry night scene. This card is using: A

Sequencing, Selection & Iteration

When you write lines of code, there are three ways you can control the order these lines will be executed by the computer: Sequencing: This means that the computer will run your code in order, one line at a time

Beach Huts Challenge

Look at the code below to draw lines of beach huts. Your task is to tweak the code used to draw the third line of beach huts. On this line we want the computer to choose random colours from the

Yes or No!

Learning Objectives When your computer prorgam is asking questions to the end-user, the end-user may not answer these questions the way you expected them to. This may cause your program to not work properly. Ideally a good program should use

Fireworks Display

Coding is an Art Let’s first whatch this video clip which shows how a computer program can be used to create a large scale, live and interactive fireworks display: Fireworks Code Inspired by this application of computer science, we have

My daily routine

Learning Objectives When you write lines of code, there are three ways you can control the order these lines will be executed by the computer: Sequencing: This means that the computer will run your code in order, one line at

Gradient Animation

In this challenge we are going to create some animated gradients by progressively changing the colour of the screen from one colour (e.g. red) to another (e.g. yellow). RGB Colour Codes Did you know that every colour on the screen

Google Translate

Have you ever used Google Translate to translate some text or a full webpage? For this challenge we are going to try to write a Python script to translate from English to French. However we are only going to translate

Formula 1 Grand Prix

For this challenge we are going to use pseudo-code to analyse the timings of the best two formula 1 drivers of the season, Lewis Hamilton and Sebastian Vettel on four different Grand Prix. For the purpose of this task we

Live Metrics

First let’s have a look at the following two webpages… http://www.internetlivestats.com/ http://www.worldometers.info/ Our Challenge In this challenge we are going to write our own Python scripts to generate live metrics. Let’s look at our first fact: Every second, on average

Captain Redbeard’s Treasure

We need your coding skills to locate the treasure of Captain Redbeard. The legend holds that Redbeard was a great pirate who sailed the Caribbean Sea, fiercely attacking any vessels from the British Navy he would encounter. Redbeard was killed

Traffic Lights Challenge

Did you know? An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. A burglar alarm, an in-car cruise control system, a speedometer on a bike, a

How to create a bouncing ball in Scratch

Step 1 – Change your main sprite to a ball Step 2 – Add the following script to your sprite:  This tutorial is available as a pdf: How to create a bouncing ball in Scratch See how to create a