Flowcharting
Flowcharting
Flowcharting
1. 2. 3. the flow of data through an information processing systems, the operations performed within the system and the sequence in which they are performed
ANALOGY:
blueprint of a building a designer draws a blueprint before starting construction on a building program flowchart a programmer prefers to draw a flowchart prior to writing a computer program
THE FLOWCHART:
is drawn according to defined rules and using standard flowchart symbols prescribed by the American National Standard Institute, Inc is a diagrammatic representation that illustrates the sequence of operations to be performed to get the solution of a problem is generally drawn in the early stages of formulating computer solutions facilitates communication between programmers and business people plays a vital role in the programming of a problem is quite helpful in understanding the logic of complicated and lengthy problems is a must for the better documentation of a complex program
Once the flowchart is drawn, it becomes easy to write the program in any high level language
STANDARD SYMBOLS
Start or end of the program
Flow line
Annotation
Display
GUIDELINES FOR FLOWCHARTING a. In drawing a proper flowchart, all necessary requirements should be listed out in logical
order. b. c. d. The flowchart should be clear, neat and easy to follow. There should not be any room for ambiguity in understanding the flowchart. The usual direction of the flow of a procedure or system is from left to right or top to bottom. Only one flow line should come out from a process symbol.
or
e. 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.
f.
g.
Write within standard symbols briefly. As necessary, you can use the annotation symbol to describe data or computational steps more clearly.
h.
If the flowchart becomes complex, it is better to use connector symbols to reduce the number of flow lines. Avoid the intersection of flow lines if you want to make it more effective and better way of communication. Ensure that the flowchart has a logical start and finish. It is useful to test the validity of the flowchart by passing through it with a simple test data.
i. j.
4.
FEW EXAMPLES ON FLOWCHARTING Example 1 Draw a flowchart to find the sum of first 50 natural numbers.
Example 2 Draw a flowchart to find the largest of three numbers A,B, and C.
FLOWCHART ASSIGNMENT
1. 2. 3. 4. 5. Draw a flowchart to read a number N and print all its divisors. Draw a flowchart for computing the sum of the digits of any given number Draw a flowchart to find the sum of given N numbers. Draw a flowchart to computer the sum of squares of integers from 1 to 50 Draw a flowchart to arrange the given data in an ascending order.