Blog Archives

3D Traffic Lights

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

3D Lego Bricks

In this blog post we will use Glowscript to create a 3D animation representing the various Lego bricks. Our aim is to recreate bricks by joining several cubes and cylinders (studs) together. We will then create a compound object to

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

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

Guess the country

For this challenge we are going to create a game where the user plays against the computer. The aim of this game is to guess the name of a country. The computer will give the player clues to help them

Haunted House

You are going to write a Python game where the user walks within the different rooms of a haunted house. In each room, something will happen. You will decide what happens when the user enters a room. You can use

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

Flags of the World

We are trying to build a program that will ask the end-user to choose a flag amongst six flags. The program will then try to guess the selected flag by asking a maximum of two questions. Look at the flowchart

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

Sweet Shop

Have you ever been in a sweet shop to buy sweets? For this challenge we are going to spend £5 in a sweet shop hence we need to find out how many sweets we can afford. We will want to

The window cleaner’s quote

A window cleaner uses the following pricing policy to calculate how much to charge for cleaning all the windows of his customer’s dwelling. This pricing policy is based on the number of windows that need to be cleaned and works

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

My Charts

For this challenge we are going to use Python turtle to create some charts: Column charts, line charts and radar charts. First we need a data set. We will use the following data that shows the market share of the