These resources have been reviewed and selected by STEM Learning’s team of education specialists for factual accuracy and relevance to teaching STEM subjects in UK schools.

The Little Book of Programming Challenges

The twenty seven challenges contained in this booklet are designed to challenge and inspire students whilst helping them on their journey to becoming a ‘computational thinker’. The ideas contained in the booklet will also provide useful teacher stimulation when planning lessons.

Many of the challenges include extension activities which students should be encouraged to attempt. The tasks are not language specific, start quite simply and progress to become more challenging. Examples of the tasks contained in the booklet are:

• Write a program that will display a joke, but will not display the punch line until a key is pressed. The extension is to display the punch line in a different colour.

• Make a game of ‘rock, paper, scissors’ against the computer. The extension is to ensure that the entry is valid.

• Write a 'guess the number' game where the computer selects a random number and the user has to guess. Extension: reverse the game so that the user chooses a number and the computer has to guess the number.

• Create a simple treasure hunt game using a two-dimensional array.

• Create a program to play the card game ‘Blackjack’

Show health and safety information

Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.

Information on the permitted use of this resource is covered by the Category Three Content section in STEM Learning’s Terms and conditions.

Lists that tag this content

Algorithms , POSTED BY