Selection - 101 Computing https://www.101computing.net Boost Your Programming Skills! Tue, 10 Sep 2024 09:14:13 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/101-1-100x100.png Selection - 101 Computing https://www.101computing.net 32 32 Hogwarts Sorting Hat Algorithm https://www.101computing.net/hogwarts-sorting-hat-algorithm/ Wed, 14 Feb 2024 12:01:20 +0000 https://www.101computing.net/?p=19652 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

The post Hogwarts Sorting Hat Algorithm first appeared on 101 Computing.

]]>
Mission Alpha-Centauri https://www.101computing.net/mission-alpha-centauri/ Fri, 30 Oct 2020 10:10:47 +0000 https://www.101computing.net/?p=11366 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

The post Mission Alpha-Centauri first appeared on 101 Computing.

]]>
Leap Year Subroutine https://www.101computing.net/leap-year-subroutine/ Tue, 25 Feb 2020 22:02:17 +0000 https://www.101computing.net/?p=10429 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

The post Leap Year Subroutine first appeared on 101 Computing.

]]>
Higher or Lower Number Game https://www.101computing.net/higher-or-lower-number-game/ Fri, 18 Oct 2019 09:04:41 +0000 https://www.101computing.net/?p=9531 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

The post Higher or Lower Number Game first appeared on 101 Computing.

]]>
Flowchart to Python Code – Poker Dice Game https://www.101computing.net/flowchart-to-python-code-poker-dice-game/ Tue, 06 Mar 2018 21:58:21 +0000 http://www.101computing.net/?p=6593 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

The post Flowchart to Python Code – Poker Dice Game first appeared on 101 Computing.

]]>
Automatic Petrol Pump Algorithm https://www.101computing.net/automatic-petrol-pump-algorithm/ Thu, 19 Oct 2017 16:16:57 +0000 http://www.101computing.net/?p=5185 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

The post Automatic Petrol Pump Algorithm first appeared on 101 Computing.

]]>
How Old is Your Cat? https://www.101computing.net/cat-age-calculator/ Thu, 31 Aug 2017 10:52:47 +0000 http://www.101computing.net/?p=1957 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

The post How Old is Your Cat? first appeared on 101 Computing.

]]>
Acute, Obtuse and Reflex Angles https://www.101computing.net/acute-obtuse-and-reflex-angles/ Tue, 09 May 2017 13:02:35 +0000 http://www.101computing.net/?p=4577 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

The post Acute, Obtuse and Reflex Angles first appeared on 101 Computing.

]]>
Hardware Quiz https://www.101computing.net/hardware-quiz/ Mon, 06 Mar 2017 22:20:52 +0000 http://www.101computing.net/?p=4139 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

The post Hardware Quiz first appeared on 101 Computing.

]]>
BBC micro:bit – Hogwarts Sorting Hat https://www.101computing.net/bbc-microbit-hogwarts-sorting-hat/ Fri, 17 Feb 2017 11:04:55 +0000 http://www.101computing.net/?p=3985 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

The post BBC micro:bit – Hogwarts Sorting Hat first appeared on 101 Computing.

]]>