Tag: Flowchart

Shuffling a 2D Array

shuffling-2d-array

For this challenge we will investigate how to create a 2D array to store the value from 1 to 100 in a 10×10 array. We will then write an algorithm to shuffle the content of this array. See the code

Shuffling Algorithm

playing-cards-shuffle

Our aim is to implement a shuffling algorithm to shuffle a deck of playing cards. To do so, we will use a list called deck to store the 52 cards of the deck as follows: Even though the random library

Higher or Lower Number Game

guess-the-number-while-loop-flowchart

For this challenge you will design and write a program to play against the computer. The computer will display a random number between 1 and 100. The user will have to try to guess this number. For each guess the

School Trip Bus Quote

school-bus

A school teacher is organising a school trip for the whole year group. He expects between 250 and 350 students to attend this trip. To estimate the cost of the trip, the school teacher has contacted a coach company to

Word Unscramble Challenge

word-unscramble

In this challenge, we will create a Word Unscramble quiz where the computer will randomly pick up words from a given list, scramble the letters of the word, output the scrambled word (anagram) and ask the user to guess the

Original Price Calculator

sale-labels

Shopping during the sales can sometimes be very confusing. With discounted prices at 10%, 20%, 50% or even 70%! For this challenge you are going to write a Python script that prompts the user to enter a discounted price in

Python Turtle – Protractor Challenge

protractor

Python Turtle? Let’s Recap! Looking at the following code can you explain the purpose of each Python Turtle instructions: turtle.color(“red”) turtle.forward(100) turtle.right(90) turtle.left(45) turtle.penup() turtle.pendown() turtle.goto(0,0) turtle.circle(50) turtle.setHeading(45) (X,Y) Coordinates? The canvas we are drawing on (using Python Turtle) is

Area Calculator Flowchart Challenge

area-circle

In this challenge you will design an algorithm to calculate the area of various shapes as listed below: Shape Name Area Square width2 Rectangle width x length Circle pi x radius2 Triangle base x height / 2 Your algorithm should:

Min, Max, Mean, Median and Mod – Flowcharts

min-flowchart

In this challenge we will design algorithms used to calculate the Min, Max, Mean, Median and Mod from a list of numbers. First you may want to refresh your maths skills and check the meaning of these terms: http://www.purplemath.com/modules/meanmode.htm MIN

Bidding Process – Flowchart

auction-bid

For this challenge we will consider the bidding process used within online auction websites such as eBay. Our aim is to create a system that will accept bids from the end-user, check if the bid being placed is greater than