Sign in

Intro to Computer Science / Unit 3: Algorithms and Problem Solving

3.4 Flowcharts Described in Words

3 practice questionsNot yet reviewed

Notes

A flowchart shows an algorithm as shapes connected by arrows. Since you may need to read them as text, learn what each shape means.

  • Oval (terminator): Start or End.
  • Rectangle: a process or action, such as "add 1 to count".
  • Diamond: a decision with a yes/no question and two exits.
  • Parallelogram: input or output.
  • Arrows show the direction of flow. A loop appears when an arrow goes back to an earlier step.
  • Example in words: Start, input a number, diamond "is the number even?"; if yes, output "even"; if no, output "odd"; End.

Practice

In a flowchart, which shape is used for a yes/no decision?
A flowchart says: Start, set count to 0, diamond "count less than 3?"; if yes, print count, add 1 to count, go back to the diamond; if no, End. What is printed?
What does an arrow that leads back to an earlier step represent?

Ready for more? Take the Unit 3 test.