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 shoelace formula or shoelace algorithm is a mathematical algorithm to determine the area of a simple polygon whose vertices are described by their Cartesian coordinates in the plane. The method consists of cross-multiplying corresponding coordinates of the different vertices…
Computers are often used to sort large amounts of data. Though this may seem like a simple task to complete, a lot of research has focused on finding the most effective algorithms to sort large amount of data. Four of…
Computers are often used to process large amounts of data. Some of the tasks they can be used for is to sort data sets in order, e.g. numerical order or alphabetical order. Though this may seem like a simple task…
Computers are often used to sort large amounts of data (e.g. numerical order or alphabetical order). Though this may seem like a simple task to complete, a lot of research has focused on finding the most effective approach to sort…
For this challenge, we will use a Python script to generate a random password of 8 characters. Each time the program is run, a new password will be generated randomly. The passwords generated will be 8 characters long and will…
Prolog is a language built around the Logical Paradigm: a declarative approach to problem-solving. There are only three basic constructs in Prolog: facts, rules, and queries. A collection of facts and rules is called a knowledge base (or a database)…
The aim of this challenge is to write a computer program to display a 5-day weather forecast for a specific location chosen by the end-user. You program will: retrieve the city from the end user (input), Use the Open Weather…
Our aim is to create a currency converter to help us convert a sum of money from one currency to another. Currency exchange rates are constantly changing which is why we have decided against the idea of storing all the…