Tag: iteration

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

Rainbow Challenge

In this challenge we are going to use our coding skills to create some nice colour patterns. We will first look at the code given to create a rainbow effect to understand how it works. We will then adapt this

Turtle Maze Challenge

Your challenge is to guide the turtle through the maze. To do so you will need to use the following instructions: myPen.forward(100) to move forward by 100 pixels, myPen.right(90) to turn right by 90 degrees, myPen.left(90) to turn left by

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