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 flowchart works like this. Start. Set Big to 0 and Loops to 0…
MediumComputer ScienceHigh School (9–10)Computer Science › Algorithms and Problem-SolvingNumericalIGCSE

A flowchart works like this. Start. Set Big to 0 and Loops to 0…

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 flowchart works like this. Start. Set Big to 000 and Loops to 000. Input X. Decision: is X > 10? If Yes, add 111 to Big. Then add 111 to Loops. Decision: is Loops = 5? If No, go back to the input. If Yes, output Big and stop.

  1. What is output for the inputs 121212, 777, 151515, 101010, 303030?
  1. What is output for the inputs 111111, 111111, 999, 101010, 101010?
  1. State the purpose of the flowchart.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Flowchart symbols: terminator (START, STOP), process (rectangle), input/output (parallelogram), decision (diamond, two exits Yes and No), subroutine (rectangle with a line inside each end), flow line (arrow). A flow line back to an earlier shape makes a loop. Conditions are written precisely, such as Count > 10.

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.

Step 1. Inputs (a). 12>1012 > 1012>10: yes. 777: no. 151515: yes. 10>1010 > 1010>10: no. 303030: yes. So Big is 333.

Step 2. Inputs (b). 111111: yes. 111111: yes. 999: no. 101010: no. 101010: no. So Big is 222.

Step 3. The purpose. It inputs five numbers and outputs how many of them are greater than 101010.

Answer: (a) 333, (b) 222.

Here is the same algorithm in pseudocode.

pseudocode
Big ← 0
Loops ← 0
REPEAT
    INPUT X
    IF X > 10
      THEN
        Big ← Big + 1
    ENDIF
    Loops ← Loops + 1
UNTIL Loops = 5
OUTPUT Big

Watch out. 101010 is not greater than 101010. A value equal to the number in the decision is the one most often counted by mistake.

Log in to save this for later
← All Problems
← A program plans train journeys between the towns of a country…A door lock asks for a password until the right one, Open, is typed… →
More onComputer Science › Algorithms and Problem-Solving

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. FlowchartsPlanning 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 →