Back

Time2Code – update to 02-02 Largest number program

23 October 2025

A lot of students are getting confused about the success criteria of the largest number program in level 2. The subprogram requires a value of 1, 2 or 3 to be returned depending on which of three input parameters is the largest. For example, the numbers 4, 6, 3 should result in 2 being returned because the second number is the largest. That is really confusing because there is no number 2!

To make the success criteria and examples easier to understand, the requirements have been changed so that the subprogram should return “first”, “second” or “third” instead. The output statement is then either:

  • The largest of the three numbers is the first number.
  • The largest of the three numbers is the second number.
  • The largest of the three numbers is the third number.

The boilerplate code has not been changed because this still matches the video. The sample tests, flowcharts, Parson’s problem and model solution for teachers have all been updated.

How to get a new model solution

Related posts

What Is Concurrency in Computing?

Concurrency is the clever trick your computer uses to juggle multiple tasks at once—without actually doing them simultaneously.
From web pages to deadlocks, discover how this behind-the-scenes magic keeps your digital world running (mostly) smoothly.

7 August 2026

Why are silicon wafers round when chips are square?

Ever wondered why silicon wafers are round when everything they power is square? It’s all down to the way we grow and slice silicon — a fascinating mix of physics, efficiency, and a touch of irony.

5 August 2026

What Is the Best Material for a Smartphone?

Your smartphone isn’t made from one perfect material — it’s a carefully engineered compromise of plastic, metal, glass, and ceramic. Each choice solves a problem… and creates another.

3 August 2026

AI torrenting may not be so legal after all

AI training is facing a legal reality check as courts draw the line between fair use and copyright infringement. We look at why data provenance and licensing are now critical in modern AI development.

31 July 2026

Why are LEDs so efficient?

Ever wondered why LEDs use so little energy? Discover how semiconductors create light directly, using far less energy and heat than traditional light bulbs.

29 July 2026

Why Pixar still chooses CPUs over GPUs

Pixar still relies on CPUs for their final film renders — not because they’re faster, but because accuracy beats speed when every photon counts. Discover why GPUs, despite their power, aren’t perfect for cinematic-quality frames.

How does AI generate images?

AI image generation turns random noise into detailed visuals using powerful maths, diffusion models, and learned patterns from millions of images.
What looks like creativity is actually a step-by-step process of refining chaos into coherent, realistic (or surreal) artwork guided by your prompt.

28 July 2026

Can AI remember?

Why does AI feel like it forgets everything mid-conversation? Discover how new breakthroughs in long-term memory could transform AI from goldfish to genius.

27 July 2026

What is E-Ink?

From e-readers to colour screens, discover how e-ink works, why it uses so little power, and why adding colour isn’t as easy as it seems.

24 July 2026