Function - 101 Computing https://www.101computing.net Boost Your Programming Skills! Wed, 09 Oct 2024 08:38:52 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/cropped-android-chrome-512x512-1-32x32.png Function - 101 Computing https://www.101computing.net 32 32 Brunel’s Engineering Algorithms https://www.101computing.net/brunels-engineering-algorithms/ Tue, 22 Feb 2022 22:54:46 +0000 https://www.101computing.net/?p=13657 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 post Brunel’s Engineering Algorithms first appeared on 101 Computing.

]]>
Let It Snow Challenge https://www.101computing.net/let-it-snow-challenge/ Thu, 23 Dec 2021 08:47:15 +0000 https://www.101computing.net/?p=13305 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

The post Let It Snow Challenge first appeared on 101 Computing.

]]>
Random Odd and Even Numbers https://www.101computing.net/random-odd-and-even-number-functions/ Wed, 20 Oct 2021 21:03:23 +0000 https://www.101computing.net/?p=12785 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

The post Random Odd and Even Numbers first appeared on 101 Computing.

]]>
Circle Geometry Functions https://www.101computing.net/circle-geometry-functions/ Thu, 06 May 2021 16:36:01 +0000 https://www.101computing.net/?p=12551 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

The post Circle Geometry Functions first appeared on 101 Computing.

]]>
Radians to Degrees Conversions https://www.101computing.net/radians-to-degrees-conversions/ Sat, 18 Apr 2020 12:05:28 +0000 https://www.101computing.net/?p=10873 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

The post Radians to Degrees Conversions first appeared on 101 Computing.

]]>
Triangle Geometry Functions https://www.101computing.net/triangle-geometry-functions/ Sun, 08 Mar 2020 21:05:53 +0000 https://www.101computing.net/?p=10526 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

The post Triangle Geometry Functions first appeared on 101 Computing.

]]>
Heron’s Formula https://www.101computing.net/herons-formula/ Tue, 03 Mar 2020 17:55:52 +0000 https://www.101computing.net/?p=10507 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

The post Heron’s Formula first appeared on 101 Computing.

]]>
Linear Search Functions https://www.101computing.net/linear-search-functions/ Thu, 27 Feb 2020 09:31:07 +0000 https://www.101computing.net/?p=10447 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

The post Linear Search Functions 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.

]]>
Connect4 Challenge https://www.101computing.net/connect4-challenge/ Wed, 24 May 2017 13:09:41 +0000 http://www.101computing.net/?p=4660 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

The post Connect4 Challenge first appeared on 101 Computing.

]]>