Tag: Selection

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

guess-the-number-while-loop-flowchart

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

flowchart-poker-dice

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

petrol-station

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

Acute, Obtuse and Reflex Angles

types-of-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

computer-hardware

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

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

Which Season?

which-season-autumn-date-time

Did you know?: Though we all agree that a calendar year is divided into four seasons, people sometimes disagree on the dates when these seasons start or finish. Many bodies, for example meteorologists, adopt a convention for the purpose of

Resistor in Series and Parallel

resistors-formulae

In this blog post we will create a Python program that will help us calculate the total resistance when two resistors are connected either in series or in parallel. This program will be based on the following formulae: Program Flowchart

Hogwarts Sorting Hat Challenge

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