In this challenge we will use the Luhn Algorithm to check if a debit card or credit card number is a valid card number. This method is used every time you scan or enter your credit card number (e.g. when…
Extension Task Using the same approach, we can encode message in a range of encoding schemes such as Hexadeximal (4-bits per character), Base32 (5 bits per character), Base64 (6 bits per character), Extended ASCII (8 bits per character). You can…
Look at the logic gates diagrams below. For each of these diagrams, complete the Truth Table corresponding to the diagram. Can you name the logic gate that each diagram is equivalent to? Check Your Answers You can now recreate these…
The aim of this challenge is to write a script that allows the user to input the equation of two straight lines (Line 1: y=ax+b, Line 2: y=cx+d). The program will then calculate the coordinates of the intersection point if…
In this challenge we will use Python Turtle to draw the track of a roller coaster. We have created three procedures for you to use when drawing the track. Each procedure takes two parameters as follows: straightLine(distance, speed): To draw…
A triangular number correspond to the number of dots that would appear in an equilateral triangle when using a basic triangular pattern to build the triangule. The triangular numbers sequence contains all the triangular numbers in order. The first 10…
A triangular number correspond to the number of dots that would appear in an equilateral triangle when using a basic triangular pattern to build the triangule. The triangular numbers sequence contains all the triangular numbers in order. The first 10…
Learning Objectives In this challenge we are learning how to draw and format a table on a web page using a range of HTML tags and CSS properties. HTML Tables First you may want to read a bit more about…
In this blog post we will work on the classic game of Minesweeper. Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden “mines” or bombs without detonating any of…
In our previous blog posts we have looked at a few logic gates circuits used inside a CPU to perform binary additions (Half adders and full adders) and to retain a bit of information using a D-Type flip-flop circuit (Data…