Could you run a school race without mixing up who finished when?
It's sports day at your school. Runners are signing up, the race is about to start, and everyone will want to know where they finished. How could you split the job so that each helper knows exactly what to do?
A task is a job to do, like signing up runners. An algorithm gives a sequence of precise steps for completing a task. You can write those steps in plain English. A program can implement the same steps in code a computer can run.
Start at the top with one task: run the school race. Branch it into three smaller jobs: register runners, time runners and rank the results. Each branch says what needs doing. Splitting a big task into smaller tasks is called decomposition.
You're adding a branch to the race plan. You want something you could ask a helper to do and then check that they've done. Which option names a task? Pick one.
Follow the arrows for one runner. Take the shared start reading as the first input. Then take the runner's number and finish reading. Subtract the start reading from the finish reading. The output is a saved record pairing the runner's number with their elapsed time.
The arrows in this pseudocode store values. Store the start reading of ten seconds, the runner number twelve, and the finish reading of forty-eight seconds. Subtract the start reading from the finish reading. Forty-eight minus ten gives thirty-eight seconds. Save that time with runner twelve's number.
Now the clock reads eight seconds at the start. Runner seventeen finishes when it reads forty-one seconds. Work out how long the runner took, then pick the record the helper needs to rank the results.
If an exam asks you to decompose timing, a stopwatch and clipboard are equipment. Give a task, such as recording each finish reading. For timing, leave out shoe colour and keep the runner number and clock readings. Leaving out details you don't need is called abstraction.
Read the Python from top to bottom. The first three lines take whole-number inputs: start reading, runner number and finish reading. The next line subtracts start from finish. The last two lines store and display the pair. From those lines, you can tell the program reports one runner's elapsed time.