Project: a score tracker

About this lesson: Project: a score tracker

In short

Our project: a program that stores players' names and scores, validates input, finds the winner and the average. First, split it into parts.

Project: a score tracker

What you'll explore

Plan it: Break the problem down
Our project: a program that stores players' names and scores, validates input, finds the winner and the average. First, split it into parts.
Input with validation: Only sensible scores
Scores must be whole numbers from 0 to 100, and names must not be empty. Look at the checks we need.
Process: Average and highest
Loop through the arrays to total the scores and find the highest. Step through.
Sort the leaderboard: Bubble sort the scores
Sort the scores so the leaderboard prints in order. Run the sort.
Test it: Try to break it
Test with normal, boundary and abnormal data. Which tests pass?
Check yourself: Testing
The score tracker accepts scores from 0 to 100.

Also in this lesson

  • Step by step
  • Watch out for these
  • Project stages
  • More than the lesson
  • Stretch your brain
  • Try it yourself

Words to know

Decomposition
Breaking a problem into smaller parts.
Parallel arrays
Arrays where the same index refers to the same record.
Requirement
Something the program must do.
Test plan
A list of tests with expected and actual results.
Evaluation
Judging how well a solution meets its requirements.

Sources

  • Python documentation: tutorial
  • Raspberry Pi Foundation: Python projects
  • Raspberry Pi Foundation, Isaac Computer Science: software development
  • BBC Bitesize, GCSE Computer Science: programming techniques

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 6 short steps and a 8-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 10 November 2026.

← Cyber security threats

All lessons in Term 3 · Computing · Age 14