Note: In the examples below, assume that variables A and I are integer.
|
SYMBOL |
TYPE OF OPERATION / |
EXAMPLE OF |
|
|
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;} |
|
|
|
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:
|
|
|
|
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); |
|

| Don't do this: |
|
Do this: |
|
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.
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 |