More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page
Python IDE Dashboard
Author: Administrator

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

French Cuisine – Entity Relationship Diagram (ERD)

French Cuisine is a 5-star restaurant serving a selection of carefully selected French recipes in a cosy atmosphere. Their menu is organised into 4 categories as follows: Starters, Main Meals, Deserts & Drinks. In the dining area, there are 21

10/02/22 Computing Challenge

As this post was published on the 10th of February 2022 (10/02/22), we would like to use a Python algorithm to solve the following arithmetic puzzle: Let’s consider a string consisting of 10 characters “2”: string = “2222222222” This computing