Author: Administrator

Comparison Operators using Logic Gates

This set of challenges is designed to be completed with a logic board such as the Logic & Arithmetic board designed by the University of Southampton and the UK Electronic Skills Foundation. Alternatively, if you do not have access to

Logic Gates Circuits

This set of challenges is designed to be completed with a logic board such as the Logic & Arithmetic board designed by the University of Southampton and the UK Electronic Skills Foundation. Alternatively, if you do not have access to

Performance Modelling & Data Visualisation – Q&A

Question 1[2 marks] A small town wants to improve the traffic within the town centre at peak time. They are considering using a synchronised traffic lights system to fluidify the traffic. But before replacing all existing traffic lights and installing

Recursive vs. Iterative Algorithm – Q&A

Question 1[2 marks] For this question, we are looking at an algorithm used to implement the divisibility rule for 3 which states that: A number is divisible by 3 if the sum of all its digits is divisible by 3.

File Size Calculations – Q&A

Question 1[3 marks] How many of the above text files can we store on a 1.44MB floppy disk? Each text file contains 6,000 characters and is encoded using ASCII: 8 bits per character. ✔ ✘ ↻ A Question 2[3 marks]

OOP – Inheritance – Q&A

Question 1[2 marks] Class File:​ private filename​ //Constructor for the File class procedure new(strFilename):​ filename = strFilename​ public procedure rename(strFilename)​ if strfilename!="":​ filename = strFilename​ Class MP3 inherits File:​ private title​ private artist​ private duration​ //Constructor for the MP3 class

OOP – Encapsulation – Q&A

Question 1[2 marks] class Padlock: private key private locked //Constructor for the Padlock class: procedure new(str_key,bool_locked): key = str_key locked = bool_locked public function unlock(combination): if combination==key: locked = False return True else: return False public procedure lock(): locked =

Maths Puzzles…

The aim of this challenge is to write a few algorithms to solve the following Maths puzzles: In order to solve these puzzles, we will use an iterative approach using nested loops to test all possible combinations of two numbers

Brunel’s Engineering Algorithms

Isambard Kingdom Brunel (1806-1859) was an English civil engineer who is considered one of the greatest figures of the Industrial Revolution. Brunel achieved many engineering firsts thanks to his hard-work, his engineering knowledge, his innovative mind and his renowned problem

The Climbing Stairs Puzzle

Imagine a staircase with n steps. As you are climbing up this staircase, you either climb one or two steps at a time. The aim of this computing puzzle is to find out, using an algorithm, in how many distinct