HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A team is making a program that lets pupils order lunch from the school canteen before the morning…
EasyComputer ScienceHigh School (9–10)Computer Science › Algorithms and Problem-SolvingConceptualIGCSE

A team is making a program that lets pupils order lunch from the school canteen before the morning…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A team is making a program that lets pupils order lunch from the school canteen before the morning break. Here are six things the team does, not in order.

  1. They write the order screen in a programming language.
  1. They ask the cooks what the program must record for each order.
  1. They draw a structure diagram with the parts "Show the menu", "Take an order" and "Print the list for the kitchen".
  1. They run the finished program with orders that should work and orders that should be refused.
  1. They test the function that adds up the price of an order straight after writing it, fix it, and test it again.
  1. They write the steps of "Take an order" in pseudocode.

Name the stage of the program development life cycle for each one.

Need a reminder? The key ideaShowHide

The program development life cycle has four stages. Analysis: identify the problem and the requirements, with abstraction and decomposition. Design: decomposition, structure diagrams, flowcharts and pseudocode. Coding: write the program code, with iterative testing. Testing: test the whole program with test data.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Plan. Ask what the team is doing: finding out what is needed (analysis), planning how (design), writing code (coding) or testing the whole program (testing).

Step 1. (a) Writing the screen in a programming language is coding.

Step 2. (b) Asking the cooks what to record finds the requirements. That is analysis.

Step 3. (c) A structure diagram is design.

Step 4. (d) Running the finished program with chosen orders is testing with test data.

Step 5. (e) Testing one function as soon as it is written, then fixing and testing again, is iterative testing. It belongs to coding.

Step 6. (f) Pseudocode is a plan of the steps, so it is design.

Watch out. Item (e) is a test, but it is not the testing stage. Testing each part while it is written is part of coding.

Log in to save this for later
← All Problems
← A filter calls an email unwanted when its score is greater than its dividing line T…In the analysis stage of the cinema ticket program, the manager adds a new requirement: a group of… →
More onComputer Science › Algorithms and Problem-Solving

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. The program development life cyclePlanning a Program: Life Cycle, Decomposition and Flowcharts

More on this topic

  1. This is the kind of long scenario question that ends Paper 2…Hard
  2. A delivery company adds a check digit to each parcel number…Medium
  3. Name the check in each case. Say whether it is validation or verification…Easy
A bubble sort is changed so that it sorts in descending order: the comparison becomes IF…Hard
  • A shop stores the colours of the ten bicycles in its window in an array Colours: red, blue, red…Medium
  • All problems on this topic →