CodeField

Make a choice

Task 6 of 6

Which program matches?

Which program does what the flowchart does, for every whole mark from 0 to 100?

The flowchart, step by step
  1. Start.
  2. Input or output: Read mark
  3. Decision: mark >= 70?
    • Yes:
      1. Input or output: Print A
      2. Stop.
    • No:
      1. Decision: mark >= 60?
        • Yes:
          1. Input or output: Print B
          2. Go to: Stop
        • No:
          1. Input or output: Print Below B
          2. Go to: Stop
Which program does what the flowchart does?

Tips

  • Follow the flowchart with a few inputs of your own, then each program.
  • Match each shape of the flowchart to a line of the program, from the top.