Tuesday, July 17, 2012

FlowChart Basics

What is a Flowchart?
A flowchart is a visually represented sequence of data.A flowchart is a diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem. Flowcharts are generally drawn in the early stages of formulating computer solutions. Flowcharts facilitate communication between programmers and business people. These flowcharts play a vital role in the programming of a problem and are quite helpful in understanding the logic of complicated and lengthy problems. Once the flowchart is drawn, it becomes easy to write the program in any high level language. Often we see how flowcharts are helpful in explaining the program to others. Hence, it is correct to say that a flowchart is a must for the better documentation of a complex program.
Describe the basic flowchart symbols for:


With the decision making symbol (diamond) and the process symbol (rectangle), what are the rules for how many lines may enter and leave the symbol?
Only one flow line should enter a decision symbol, but two or three flow lines, one for each possible answer, should leave the decision symbol.






Only one flow line should come out from a process symbol.
 Study the sample flowcharts then create a flowchart for a coin toss where heads means Mary pays for the pizza and Tales means Bill pays.

Notes:
One in and two out
 For the diamond
Variable (the sum)
Diamond is a yes or no question
actions in a box



No comments:

Post a Comment