Home » Flowchart in C

Flowchart in C

A flowchart is a schematic representation of an algorithm or process. A flowchart is one of the seven basic tools or quality control, which also includes histogram, control chart, scatter diagram etc.

A flowchart is defined as a pictorial representation describing a process being studied or even used to plan stages of a project.

Types of  Flowchart

  • Top-down Flowchart
  • Detailed Flowchart
  • Work flow Flowchart
  • Deployment Flowchart

Symbols in Flowchart : A flowchart consists of following types of symbols :

  • Start and End Symbols : This usually containing the word “Start” or “End” or another phrase signaling the start or end of a process. It is represented by ovals or rounded rectangles.
  • Arrows : This symbol showing the “Flow of Control”. An arrow coming from one symbol and ending at another. Also, this symbol represents / shows the order in which operations are performed and indicate the point at which different data has been calculated or processed.
  • Processing Steps : It is used to show mathematical calculations, moving data from one location to another. It is represented as rectangles.
  • Input and Output : It is used to show the Input data and output data. It is represented as Parallelogram.
  • Conditional/Decision : It is used to represent the Yes/No question or True/False test. This is represented as Diamond. This symbol has two arrows coming out of it, usually from bottom point and right point, one corresponding to Yes or True and other corresponding to No or False.
  • Connector Symbol : Two small circles are used to connect separated portion of a flowchart without drawing lines between the parts. These are used to represent converging paths in the flow chart. Circles will have more than one arrow coming into them but only one outgoing arrow.

Steps to develop a Flowchart : Step by step process to develop a flowchart are given below:

  • Gather information of how the process flows by conservation and product development codes.
  • Trial process flow.
  • Allow other more familiar personnel to check the accuracy.
  • Makes changes if necessary.
  • Compare final actual flow with best possible flow.

Rules for construction of a Flowchart :

  • Defines the boundaries of the process clearly.
  • Use the simplest symbols possible.
  • Make sure every feedback loop has an escape.
  • There is usually only one output arrow out of a process box.
  • If complexity increases then connectors can be used to reduce the number of flow lines.
  • Do not chart every detail.

Advantages of Using Flowcharts:

  • Communication: Flowcharts are better way of communicating the logic of a system to all concerned.
  • Effective Analysis: With the help of flowchart, problem can be analysed in more effective way.
  • Proper Documentation: Program flowcharts serve as a good program documentation, which is needed for various purposes.
  • Efficient Coding: The flowcharts act as s guide during the system analysis and program development phase.
  • Proper Debugging: The flowchart helps in debugging process.
  • Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart.

Advantages of Flowcharts:

  • Easy to understand the logic of the problem being studied.
  • It is a proper documentation tool.
  • It helps in normalize the overall system design.
  • Provides a roadmap for the programmers.

Disadvantages of Flowcharts:

  • Difficult to determine about how much programming details are to be included.
  • Very time consuming.
  • For complex problems not an appropriate tool when runs over pages.

Example of Flowcharts: 1) Flowchart to check whether a number is positive or negative.

2) Flowchart to find the greatest number from 3 numbers.



Leave a comment

Your email address will not be published. Required fields are marked *

‘C’ Practical

  1. To get fomiliar with the structure of a ‘C’ program and print “Hello World!” on computer screen.
  2. To perform addition, subtraction, multiplication and division operations on two integers.
  3. To use unformatted 1/0 functions (getchar() and putchar(), gets() and puts()).
  4. To use scanf() function to read integers (%d, %i, %o, %u, %x), characters (%c), floating point numbers (%f, %g, %e), strings (%s, scanset).
  5. To use printf() function to format and print output (%d, %i, %o, %u, %x, %e, %E, %f, %g, %c, %p, %c, %s, %n)
  6. To change width, precision and alignment of the output of printf().
  7. To perform and, or, not, exor, left-shift and right-shift operations on integers.
  8. To check whether a given integer is even or odd (if … else statement).
  9. To write month name corresponding to a month number (switch … case).
  10. To check whether a given integer is prime using while loop.
  11. To reverse the digits of a given positive integer using while loop.
  12. To generate the multiplication table of a given integer using for loop.
  13. To generate first n terms of Fibonacci series using do-while loop.
  14. To compute factorial of a given integer using for loop.
  15. To compute sum of elements of a one dimensional integer array.
  16. To find the largest element in a one dimensional array.
  17. To perform matrix addition and matrix multiplication using 2-D arrays.
  18. To convert the alphabetic characters of a string to uppercase.
  19. To find the length of a string.
  20. To use Standard Library String Functions (strcat(), strrev(), strcp(), strcmp())
  21. Writing a function to find sum of two integers.
  22. Writing a function to swap value of two integers (call by reference).
  23. Writing a function to compute factorial of a given integer (using recursion).
  24. To read and print multiple data items (roll_no, name, branch, semester etc.) pertaining to an individual student.
  25. Demonstrating the use of union
  26. Demonstrating the use of address and dereferencing operators
  27. Performing pointer arithmetic to manipulate an array
  28. To read the contents from a file and display it on screen
  29. To read names and addresss of persons and write them into a file.
  30. Write a program to read the contents of two different files and write it into the third file.