Tag: Flowchart

Average night’s sleep survey


For her PSHE homework on the importance of sleep, Clarisse has decided to collect data from pupils of different year groups from her school. She will do so using a short survey. The aim of the survey will be to

Linear Search Functions


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

Leap Year Subroutine

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

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


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


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


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


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


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