Docsity

Understanding Flowcharts: Symbols, Components, and Guidelines, Study notes of Computer science

Partial preview of the text

Download Understanding Flowcharts: Symbols, Components, and Guidelines and more Study notes Computer science in PDF only on Docsity!

Flowcharts

Symbols

Flowcharts

What is a flowchart? A flowchart is a graphical way to show how to solve a problem. Graphical means, making use of diagrams / symbols A flowchart is a diagram that shows a step-by-step list of instructions that need to be followed to solve a problem. List of steps to solve a problem is called an algorithm.

  • The START symbol shows where a flowchart begins.
  • The END symbol indicates where a flowchart ends.
  • START or END is written inside the oval. Flowchart Symbols : Start / End Start End Start End

Flowchart Symbols : Input / Output

  • A parallelogram represents both INPUT and OUTPUT actions
  • INPUT symbol indicates the point at which data needed to do the calculation is received e.g to calculate area we need to
  • OUTPUT symbol indicates the point at which results are shown. 5 INPUT or OUTPUT INPUT length, width OUTPUT area

Flowchart Symbols: Decision Box

  • A DECISION BOX is represented by a diamond shape.
  • It indicates a place where we have to make a choice by answering a question written inside the decision box.
  • The question has only two possible answers: YES or NO
  • The answer will determine the next step to follow.
DECISION BOX

marks < 35?

Flowchart Symbols: Flowlines

  • Flowlines are represented using arrows.
  • A flowline indicates the movement of data through the
flowchart by connecting one symbol to another.
  • A flowline points to the next step to follow. 8

FLOWLINES

Guidelines to draw flowcharts

  1. INPUT, OUTPUT and PROCESS symbols have one incoming flowline and one outgoing flowline. Input next number Output result sum = num1 + num
  1. Each arrow that flows out of a DECISION BOX is labelled with one of the two possible choices Guidelines to draw flowcharts
  2. A DECISION BOX has ONE incoming flowline but TWO outgoing flowlines. 11 is count = 10? age < 18? : YES or NO. NO YES YES NO

Homework 2

13

Homework

Homework