Sunday, 25 January 2015

Flowcharts

Flowcharts

Here is a selection of basic flowchart symbols:


Decision are used for when there is a choice, for example: is JohnJoe amazing y/n.
Process is for when something happens, for example: JohnJoe opened the door.
Input/Output is used for when something needs to be imputed. For example if you made toast the toaster would output a beeping noise when the toast is done.
Arrows are used to connect the various symbols in a flowchart.

Examples

Here is some pseudo-code for a program:
age = input;
if(age > 18)
print("Cool, you can buy a knife!");
else
print("Uh oh, no knife for you.");'
END
Now here is that represented with a flowchart

Here is that pseudo-code as a flowchart:


Great isn't it?

Problem 1


Problem 2


Problem 3

No comments:

Post a Comment