Tag: Function

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

Let It Snow Challenge

In this challenge, we will create a randomised Christmas card using Python Turtle. Our card will include 20 snowflakes of random sizes, colours and number of branches, randomly positioned on the canvas. We will also add some Christmas Greetings to

Random Odd and Even Numbers

In this challenge we will focus on using the random library to generate random numbers in Python. The randint() function is used to generate a random integer (whole number) within a given range. import random number = randint(1,100) The above

Circle Geometry Functions

In this challenge we will create a library of functions to apply the different formulas based on the geometry of circles. For each function, you will need to design the algorithm using either Pseudo-code or a flowchart, implement the function

Radians to Degrees Conversions

The radian is a unit of measure for angles used mainly in trigonometry. It is used as an alternative to degrees. Whereas, in degrees a full circle is 360 degrees, in radians a full circle is 2π radians: It is

Triangle Geometry Functions

In this challenge we will create a library of functions to apply the different formulas based on the geometry of triangles. For each function, you will need to design the algorithm using either Pseudo-code or a flowchart, implement the function

Heron’s Formula

The Heron’s formula is a famous formula used to calculate the area of a triangle based on the length of its three sides. It is called “Heron’s Formula” (sometimes called Hero’s formula) after Hero of Alexandria who was a Greek

Linear Search Functions

For this programming challenge we will investigate different functions which will all be based on a linear search algorithm. Let’s consider a teacher who has decided to keep track of rewards issued to their students throughout the term by adding

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

Connect4 Challenge

In this blog post you will use HTML, CSS, and JavaScript to complete this game of connect 4 for two players. (Rules of the game) You will first need to reverse-engineer the code provided. The code so far is used