FLOWCHARTING SYMBOL TABLE

Note: In the examples below, assume that variables A and I are integer.

SYMBOL
SHAPE

TYPE OF OPERATION /
C Code Example

EXAMPLE OF
SYMBOL USAGE

Terminal Activity - Start, Stop or End

{

Assignment of a value to a variable, either directly or as the result of a calculation.

I = I + 1;

Softcopy - screen output to a video display.

printf ("The answer is: %d", A);

Hardcopy - document output to a printer.

The C coding required to print hardcopy varies with each compiler.

Manual Input from the Keyboard to Memory.

scanf ("%d", &A);

Decision - based on a relational condition, select from (branch to) multiple processes.

if (A < 0) {statements;}
else {statements;}

Sub-routine (a.k.a. "Procedure") used to indicate a process which is defined elsewhere.

INTRO (); /* Call Intro */

Connectors: On-page (left) & Off-page (right).

Used to either:

  1. Continue a flowchart at a different place either on or off the same piece of paper.
  2. Close a selection branch or loop.


Flow of Control Arrows indicating the sequence of steps ("flow of control").

Annotation for placing comments in logic.

A = 0; /* Reset A */

General Input/Output of Data

fprintf (filename, data);


General Flowcharting Guidelines

switch (ANS) {
case 'Y':
case 'y':
    X = 1;
    break;
case 'N':
case 'n':
    X =-1;
    break;
default:
    x := 0;
    break;
}

Notice that the diamond contains only the name of the single variable to be evaluated. The "legs" that exit the decision diamond are each labeled with the unique values from a limited set of possible values for the variable ANS, including the "else" (default) option.



Go to Home Page to the Course Home Page

Last Revised: 4 October 2005 © 2005 Randolph Gibson
www.gibson.vero-beach.fl.us/classes/cop2000/flowchart/symbols.html E-mail: rgibson@ircc.edu