What is flowchart
A flowchart is a graphical representation of a process. A reference to C language is the graphical presentation of the execution flow of this program.
Often, whenever you write a program, you write without any flow chart. It is impossible to understand it by another person. You graphically represent your program through the flowchart. By doing so, anyone can understand the logic of your program without you.
When you work as a programmer for a company, it is compulsory to create a flow chart before coding. This is done because the programmers often change in companies. It is compulsory to create flow charts so that any other person can easily understand and work on any project you have created.
An important reason for creating a flowchart is that it gives you a deep understanding of the program. You can see the errors and results coming in before it comes to coding. If the flow chart has been done completely, then coding is just a simple process in which the programmer has to write code according to the flowchart.
The biggest feature of the flow chart is that the flowchart is not meant for any particular programming language. By looking at the flowchart, you can implement the process in any programming language.
Large companies take a lot of time on the flowchart before developing the project. A flowchart is a blueprint of your program. It is like building a house before building it. The time spent in coding takes much more time from the flow chart. Algorithms are also made according to the flow chart.
Every good programmer should learn it because it is a very powerful tool. Today, many modern text editors such as Microsoft Word provide built-in options to create a flowchart. You can also create flow charts by using them.
Symbols of Flow Chart
This is an oval symbol. It is also called the terminal symbol. This is used to start and end the flow chart. Before any process, it is extremely important to start the program and endpoint define.
Whenever you execute an execution or a statement that is being processed, it is represented by the processing symbol.
You use parallelogram to display the input and output of the program.
The diamond symbol is used to show the decision making statements of the program.
Arrow symbol is used to show the flow of the program. It is used to show the flow after every symbol.
Example of FlowChart
Let us see another example of the flowchart. Suppose you want to create a program that reads two integer numbers and displays which is greater than that. For this, the flow chart will be created like this.
Everything in the flow chart above is the same as before, just by the diamond symbol, the condition according to the condition in which the number is greater is being displayed.