Tag: Selection

Hogwarts Sorting Hat Algorithm

In this challenge, we will implement an algorithm to help the sorting hat at Hogwarts school of witchcraft and wizardry decide which house you would more likely belong to. When a new student join Hogwarts school, they are assigned to

Mission Alpha-Centauri

Did you know that Alpha-Centauri is the second nearest star to planet Earth, the first one being the Sun. It is 4.2 light-years away from us! When astronomers measure the distance of stars (from planet Earth) they do not use

Leap Year Subroutine

A leap year is a calendar year that contains an additional day (29th of February) added to keep the calendar year synchronised with the astronomical year or seasonal year (which contains roughly 365¼ days or 365.242375 days to be more

Higher or Lower Number Game

For this challenge you will design and write a program to play against the computer. The computer will display a random number between 1 and 100. The user will have to try to guess this number. For each guess the

Flowchart to Python Code – Poker Dice Game

The aim of this challenge is to create a simplified game of Poker Dice using only three dice. The computer will generate three random numbers between 1 and 6. The program will then check to see if the three dice

Automatic Petrol Pump Algorithm

In this challenge we will implement an algorithm to be used in an Automatic Petrol Pump to interact with the customer and calculate the total cost of filling up their vehicle. The fuel options and tariffs at this petrol station

How Old is Your Cat?

In this challenge we are going to create a cat’s age convertor find out how old a cat is in “human years”. This is very useful to understand more about cats and the care they need and to find out

Acute, Obtuse and Reflex Angles

Angles are often used in Computer Science especially when creating 2D or 3D user interfaces. Angle measurements are given in either radians or degrees. In this blog post we will use degrees. As the angle increase, the name of the

Hardware Quiz

Computers hardware consists of all the components that you will find inside the computer (Motherboard, CPU, RAM, graphic card, sound card, network card, etc.) as well as all the peripherals/devices than you can plug to a computer. Peripherals are often

BBC micro:bit – Hogwarts Sorting Hat

In the Harry Potter series of novels written by British author J. K. Rowling, The Sorting Hat is a magical hat at Hogwarts that determines which of the four school Houses each new student belongs most to. These four Houses