- What do the symbols in a program flowchart mean?
- A terminator, the start and stop shape, marks the beginning and end. Inputs and outputs go in parallelograms, a question goes in a diamond shape, and a process box holds a calculation written with arithmetic operators. Flowlines join the symbols and show the order. A subroutine symbol means that a procedure is called.
- How do you write a decision in a flowchart?
- Write the question as a mathematical expression with a comparison operator, such as count = 12 or x > 5. Prose such as 'is x between 5 and 10' is not acceptable. Label both flowlines leaving the decision with Yes and No, because the outcome must match the question.
- How do you test whether a number is between two values in a flowchart?
- Use two decisions in diamond shapes. The first decision is x >= 5?, and its Yes line leads to a second decision, x <= 10?. Every decision needs both a Yes line and a No line, each labelled. Writing the test as prose in a single decision box does not earn the marks.
- How do you draw a flowchart from a written description?
- Work down the description in order and turn each sentence into one symbol. Begin with a terminator for start and stop, make each check a decision in a diamond shape with Yes and No lines, and put each input or message in a parallelogram. Where an error sends the user back, draw a loop back to the start from that error.
- What errors do examiners look for when a flowchart is given to correct?
- The mark schemes credit errors such as a test that is wrong for the logic, so the flowchart ends on the first run through, and a variable that is not initialised. Other credited errors are no output and a loop that goes to the wrong place. For each error, say what is wrong, what the corrected flowchart does, and justify the change.
- What mistakes do students make in a flowchart that finds an average?
- A common mistake is to calculate the average as sum * 12 instead of sum / 12. The flowchart also needs the sum initialised to 0 and the count increased by 1 each time a number is input. Only the Yes line or only the No line is labelled, which loses marks, so label both lines leaving the count = 12? decision.