Coordinates - 101 Computing https://www.101computing.net Boost Your Programming Skills! Mon, 21 Oct 2024 08:41:31 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/cropped-android-chrome-512x512-1-32x32.png Coordinates - 101 Computing https://www.101computing.net 32 32 Python Turtle Race https://www.101computing.net/python-turtle-race/ Tue, 11 Jul 2023 11:17:29 +0000 https://www.101computing.net/?p=18625 In this challenge we will create a Python script to complete a Turtle race with four turtles racing across the screen. We have started the code for you to set up the pitch of grass. You will complete this project

The post Python Turtle Race first appeared on 101 Computing.

]]>
Vera Molnár’s Artwork revisited using Python https://www.101computing.net/vera-molnar-artwork-revisited-using-python/ Sat, 14 Mar 2020 14:46:21 +0000 https://www.101computing.net/?p=10548 Vera Molnár (born 1924) is a French media artist of Hungarian origin. She is considered to be a pioneer of computer art. Trained as a traditional artist, she began working with computers in 1968, where she began to create algorithmic

The post Vera Molnár’s Artwork revisited using Python first appeared on 101 Computing.

]]>
Polar vs. Cartesian Coordinates https://www.101computing.net/polar-vs-cartesian-coordinates/ Sun, 29 Dec 2019 11:17:20 +0000 https://www.101computing.net/?p=9962 In this blog post we will investigate two types of coordinates used to identify the location of a point on a 2D plan: Cartesian Coordinates (x,y) Polar Coordinates (r,θ) Both sets of coordinates have their own applications and are often

The post Polar vs. Cartesian Coordinates first appeared on 101 Computing.

]]>
Manhattan distance calculator https://www.101computing.net/manhattan-distance-calculator/ Thu, 19 Dec 2019 10:56:31 +0000 https://www.101computing.net/?p=9878 When calculating the distance between two points on a 2D plan/map we often calculate or measure the distance using straight line between these two points. Thought this “as the crow flies” distance can be very accurate it is not always

The post Manhattan distance calculator first appeared on 101 Computing.

]]>
The Honeycomb Challenge https://www.101computing.net/honeycomb-challenge/ Mon, 25 Mar 2019 13:39:10 +0000 https://www.101computing.net/?p=8597 Honeycomb is a structure of hexagonal cavities (cells of wax), made by bees to store honey and eggs. In this challenge we will use a set of iterative algorithms to draw a honeycomb pattern. First, we will create a function

The post The Honeycomb Challenge first appeared on 101 Computing.

]]>
Pentagram Challenge https://www.101computing.net/pentagram-challenge/ Sun, 10 Mar 2019 16:57:50 +0000 https://www.101computing.net/?p=8539 A polygon is a plane shape (2D) with straight lines. It consists of vertices and edges. A polygon is regular when all angles are equal and all sides are equal. For instance a regular pentagon consists of 5 vertices and

The post Pentagram Challenge first appeared on 101 Computing.

]]>
Estimating Pi using the Monte Carlo Method https://www.101computing.net/estimating-pi-using-the-monte-carlo-method/ Mon, 18 Dec 2017 22:55:43 +0000 http://www.101computing.net/?p=5721 One method to estimate the value of π (3.141592…) is by using a Monte Carlo method. This methods consists of drawing on a canvas a square with an inner circle. We then generate a large number of random points within

The post Estimating Pi using the Monte Carlo Method first appeared on 101 Computing.

]]>
Python Turtle – WordArt Challenge https://www.101computing.net/python-turtle-wordart-challenge/ Mon, 11 Dec 2017 14:00:54 +0000 http://www.101computing.net/?p=5603 In this challenge we will use Python Turtle to draw text on screen and customise the appearance of our text. To do so we have created our own font as a Python dictionary. Each letter of the alphabet is represented

The post Python Turtle – WordArt Challenge first appeared on 101 Computing.

]]>
Confetti Artwork Challenges https://www.101computing.net/confetti-artwork-challenges/ Thu, 07 Dec 2017 22:48:40 +0000 http://www.101computing.net/?p=5584 For these challenges we will produce on screen artwork by randomly positioning confetti on different shapes of canvas. Our code will use Python Turtle to draw the canvas and the confetti. Square Canvas Check how the code provided below randomly

The post Confetti Artwork Challenges first appeared on 101 Computing.

]]>
Confetti Challenge https://www.101computing.net/confetti-challenge/ Thu, 07 Dec 2017 15:33:12 +0000 http://www.101computing.net/?p=5559 In this Python challenge we will write a script to randomly draw confetti on a canvas while ensuring that none of the confetti overlap with each other! Problem Decomposition In this challenge we will need to solve the following problems:

The post Confetti Challenge first appeared on 101 Computing.

]]>