Breaking

Sunday, March 11, 2018

Software Programming (Java) Flowcharts




FLOWCHARTS

A flowchart is a type of diagram (graphical or symbolic) that represent an algorithm or process. Each step in the process is represented by a different symbol and contains a short description of the process step. The flowchart symbols are linked together with arrows showing the process flow direction. A flowchart typically shows the flow of data in a process, detailing the operations/ steps in a pictorial format which is easier to understand than reading it in a textual format.

A flowchart describes what operations (and in what sequence) are required to solve a given problem. A flowchart can be likened to the blueprint of a building. As we know a designer draws a blueprint before starting construction on a building. Similarly, a programmer prefers to draw a flowchart prior to writing a computer program. Flowcharts are a pictorial or graphical representation of a process works or should work without any technical or group specific jargon.

Flowcharts are used in analyzing, designing, documenting or managing a process or program in various fields.

Flowcharts are generally drawn in the early stages of formulating computer solutions. Flowcharts often facilitate communication between programmers and business people. These flowcharts play a vial 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.

For example, consider that we need to find the sum, average and product of 3 numbers given by the user.

Algorithms for the given problem is as follows:

Read a, b, c
Compute sum(S) as a+b+c
Computer Average(A) as S/3
Compute Product(P) as a x b x c

Write the Sum, Average and Product Flowchart for the above problem will look like,





Now that we have seen an example of a flowchart let us list the advantages and limitations of using flowcharts.

No comments:

Post a Comment