Tag: Flowchart

Jack and the Beanstalk

jack-and-the-beanstalk

In the English fairy tale, Jack and the beanstalk, Jack is a young, poor boy living with his mother and a dairy cow on a farm cottage. The cow’s milk is their only source of income. When the cow stops

Heads or Tails

flip-a-coin

In this challenge we will create a game of heads to tails using the following rules: The game will consist of 5 rounds. In each round: the user will make a guess, the computer will flip a coin, the player

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

Shuffling Algorithm (Shuffling a deck of cards)

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: