Introduction to Flowcharts

Site: Newgate University Minna - Elearning Platform
Course: Problem Solving
Book: Introduction to Flowcharts
Printed by: Guest user
Date: Thursday, 26 March 2026, 9:05 AM

1. Introduction to Flowchart

1.1 What is a Flowchart?

A flowchart is a graphical or pictorial representation of an algorithm. It uses standardized symbols connected by arrows (flowlines) to show the step-by-step sequence of operations in a process or algorithm. Flowcharts provide a visual blueprint that makes complex algorithms easier to understand, analyze, and communicate.

1.2  Importance of Flowcharts in Problem Solving

Visual Clarity: They make algorithm logic visible and easier to comprehend than text-based descriptions.

Communication Tool: Serve as a universal language that can be understood by programmers and non-programmers alike.

Debugging Aid: Help identify logical errors, missing steps, or inefficient sequences before coding begins.

Documentation: Provide clear documentation of the problem-solving approach for future reference.

Efficiency Analysis: Allow visual analysis of the algorithm's efficiency and optimization opportunities.

1.3 Historical Context

Flowcharts were first introduced by Frank Gilbreth in 1921 as "Process Charts" to document workflow processes. They were later refined and popularized in computer science during the 1940s and 1950s as programming became more complex.


2. Standard Flowchart Symbols and Their Meanings

Flowcharts use a standardized set of symbols, each with a specific meaning. Understanding these symbols is essential for both reading and creating flowcharts.

2.1 Basic Flowchart Symbols

2.2 Rules of Flowcharting

A number of rules recommended by the American National Standards Institute (ANSI) that need to be followed when drawing flowcharts are stated as follows;

        i.            Every aspect of the flowchart should be represented using the standard symbols

      ii.            Flowcharts must have only one starting and ending point

    iii.            Steps in a flowchart should follow top-to-bottom or left-to-right approach

     iv.            The inputs, process, output symbols should have two flow lines connecting to the previous symbol and to the next symbol

      v.            The decision symbol should have flow lines for each possible solution such as yes/no or true/false.


3. Control Flow Structures in Flowcharts

Control flow refers to the order in which individual statements, instructions, or function calls are executed. Flowcharts represent three fundamental control structures:

3.1 Sequence Structure

Definition: Steps are executed one after another in linear sequence.

Flowchart Representation: A straight line of connected symbols (no branches).

Example: Addition of two number

3.2 Selection Structure (Decision Making)

Definition: Different paths are taken based on a condition.

Flowchart Representation: Diamond symbol with multiple outgoing paths.

Types:

        i.            Simple Selection: If-then structure

      ii.            Double Selection: If-then-else structure

    iii.            Multiple Selection: Nested if or case structure

Example: Checking if a number is positive or negative.

3.3 Iteration Structure (Looping)

Definition: Repeating a set of steps while a condition is true.

Flowchart Representation: Flowline looping back to a previous point.

Types:

        i.            Pre-test Loop: Condition checked before execution (while loop)

      ii.            Post-test Loop: Condition checked after execution (do-while loop)

Example: Printing numbers from 1 to 10.


4. Guidelines for Creating Effective Flowcharts

4.1 Flowchart Creation Steps

  1. Understand the Problem: Clearly define what needs to be accomplished.
  2. Identify Major Steps: Break down the algorithm into main components.
  3. Arrange Steps Logically: Determine the correct sequence of operations.
  4. Draw Symbols: Use appropriate symbols for each step.
  5. Connect with Flowlines: Show the direction of flow between steps.
  6. Review and Test: Verify the logic by walking through the flowchart.

4.2 Best Practices

1.      Flow Direction: Typically flow from top to bottom or left to right.

2.      Clarity: Use clear, concise text within symbols.

3.      Consistency: Maintain uniform symbol sizes and spacing.

4.      Simplicity: Avoid crossing flowlines whenever possible.

5.      Completeness: Ensure all possible paths are accounted for, especially in decision structures.

4.3 Common Errors to Avoid

1.      Missing start or end symbols

2.      Unlabeled decision branches

3.      Dead ends (paths that don't lead to an end point)

4.      Ambiguous or unclear text in symbols

5.      Overly complex diagrams that are difficult to follow

4.4 Building a Flowchart: A Detailed Example

Problem: Check if a user-input number is Positive, Negative, or Zero.

This flowchart visually captures the entire logical structure of the solution before a single line of code is written.