Week 5 Flowcharts
Week 5 Flowcharts
Introduction
Flow chart is one of the programming tools used to document an algorithm.
Flowchart uses different symbols to design a solution to a problem.
Flowchart is often considered as a blueprint of a design used for solving a specific problem.
The main purpose of flowchart is making the logic of the program clear in a visual
representation.
Definition
Flowchart is a diagrammatic/graphical representation of the logic (sequence of steps) to
solve a problem
8. Only one flow line should enter a decision symbol. However, two or three flow lines
may leave the decision symbol.
Advantages of flowchart:
1. Communication: - Flowcharts are better way of communicating the logic of a system
to all concerned.
2. Effective analysis: - With the help of flowchart, problem can be analyzed in
more effective way.
3. Proper documentation: - Program flowcharts serve as a good
program documentation, which is needed for various purposes.
4. Efficient Coding: - The flowcharts act as a guide or blueprint during the
systems analysis and program development phase.
5. Proper Debugging: - The flowchart helps in debugging process.
6. Efficient Program Maintenance: - The maintenance of operating program becomes
easy with the help of flowchart. It helps the programmer to put efforts more
efficiently on that part.
Examples
1. Draw a flowchart to find the average of marks obtained by a student in three subjects