0% found this document useful (0 votes)
121 views29 pages

Sequential Flowcharting Techniques

This document discusses flowcharting techniques for computer programming. It defines flowcharting and explains that flowcharts visually present the flow of data through processing systems. The document then describes common flowchart symbols like rectangles, diamonds, hexagons, ovals, and arrows. It provides examples of flowcharts and lists general rules for constructing flowcharts. Finally, it presents two guided exercises for drawing flowcharts to solve computational problems.

Uploaded by

Connor Lopez
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
121 views29 pages

Sequential Flowcharting Techniques

This document discusses flowcharting techniques for computer programming. It defines flowcharting and explains that flowcharts visually present the flow of data through processing systems. The document then describes common flowchart symbols like rectangles, diamonds, hexagons, ovals, and arrows. It provides examples of flowcharts and lists general rules for constructing flowcharts. Finally, it presents two guided exercises for drawing flowcharts to solve computational problems.

Uploaded by

Connor Lopez
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Computer

Programming I
Compiled by:

Mary Ann B. Taduyo


Learning Outcome
 Define the basic flowcharting techniques and
use them in the development of program
flowchart.
 Construct flowcharts to express algorithm
 Describe and understand the flowchart
symbols.
Flowcharting
Program Design Tools:
Flowchart
 Flowchart is a diagram which visually
presents the flow of data through processing
systems.

 Algorithms are nothing but sequence of steps


for solving problems..
Program Design Tools:
Flowchart
 A flowchart, will describe the operations (and
in what sequence) are required to solve a
given problem.
Flowcharting
Flowchart Symbols
 Terminal,
 Process,
 Input/Output,
 Decision,
 Connector and
 Predefined Process.
Flowchart Symbols
Flowcharting Symbols
Input/Output Parallelogram

• It represents an instruction to an input or an output


device.

Process Rectangle

• This symbol is used to represent a group of


program instructions that perform a processing
function of the program
Flowcharting Symbols

Decision Diamond

• It denotes a point in the program where more


than one path can be taken.
Flowcharting Symbols
Preparation
Hexagon

• This symbols used to represent an


instruction or group in instructions that will
alter, or modify a program’s course of
execution.
Flowcharting Symbols
Start/Stop Oval

• It is used to designated the beginning and the


end of a program, or a point of interruptions.

Connector

• This is a nonprocessing symbols which is used to


connect one part of a flowchart to another without
drawing flow lines
Flowcharting Symbols

Arrowheads

• Used to show the direction of processing or


data flow.
Flowcharting Symbols

Horizontal/
Vertical Lines

• It is used to show reading order or sequence


in which flowchart symbols are to be read.
Flowchart Symbols
Input/Output Start/Stop

Process
Connector
Flow Lines
Decision

Flow Direction
Preparation Indicators
Flowcharting
General Rules for flowcharting
1. All boxes of the flowchart are connected with
Arrows.
2. Flowchart symbols have an entry point on the
top of the symbol with no other entry points. The
exit point for all flowchart symbols is on the
bottom except for the Decision symbol.
Flowcharting
General Rules for flowcharting
3. The Decision symbol has two exit points
4. Generally, a flowchart will flow from top to bottom.
However, an upward flow can be shown as long as
it does not exceed 3 symbols.
Flowcharting
General Rules for flowcharting
5. Connectors are used to connect breaks in the
flowchart.
Examples are:
• From one page to another page.
• From the bottom of the page to the top of
the same page.
• An upward flow of more than 3 symbols
Flowcharting
General Rules for flowcharting
6. Subroutines and Interrupt programs have their
own and independent flowcharts.
7. All flow charts start with a Terminal or Predefined
Process
8. All flowcharts end with a terminal or a contentious
loop.
Examples of
Flowchart
Flowchart – sequential type

Problem 1:
Find the area of circle of
radius (r).
Flowchart – sequential type
Problem 1: Find the area of circle of radius (r).
Start

Read r

Area = Pi * R * R

Print Area

END
Flowchart – sequential type

Problem 2:
Convert temperature
Fahrenheit (F) to Celsius (C)
Flowchart – sequential type
Problem 2: Convert temperature Fahrenheit (F) to
Celsius (c).
Flowchart – sequential type

Problem 3:
Flowchart for an
algorithm which gets two
numbers and prints sum of
their value
Flowchart – sequential type
=
Problem 3: Flowchart for an algorithm which gets two numbers and

prints sum of their value. Start

Read A, B

SUM = A + B

Print SUM

END
Be Ready for Guided
Exercises in Flowcharting
Guided Exercises 3

1. Given the three numbers A, B, C. Draw a


flowchart to compute and print out the sum, the
average, and the product of these values.

2. Write an algorithm that will input the value of


money in Peso denomination and output its
equivalent in Dollars.
Conversion factor: 1 dollar = 49.59 peso.
Thank you and Happy
Day Everyone

Common questions

Powered by AI

Essential flowchart symbols include Terminal (Oval) for start/stop points, Process (Rectangle) for processing instructions, Input/Output (Parallelogram) for data entry and retrieval, Decision (Diamond) for branching paths based on conditions, and Connector (Circle) for linking flowcharts across pages or segments. These symbols guide the creation of a program flowchart by providing a standardized, visual method to map out the algorithm's sequence, data flow, and decision points .

A contentious loop in flowcharts is a loop that perpetually continues until a specified condition within the loop changes, maintaining an ongoing cycle within the flowchart. It differs from a standard loop where a clear exit condition is predefined. In flowchart creation, it must be clearly depicted using decision symbols to avoid confusion, ensuring the logic's continuity and eventual termination conditions remain visible to comprehensively manage iterative instructions .

The process of converting a temperature from Fahrenheit to Celsius using a flowchart involves: starting with a 'Start' terminal, reading the Fahrenheit temperature (Input/Output), using a processing step to apply the conversion formula C = (F - 32) * 5/9, then printing the Celsius result (Output), and ending with a 'Stop' terminal. This sequence is visualized using flowchart symbols to ensure a clear algorithm representation .

Connectors in flowcharts, typically represented by small circles, are used to link different parts of the flowchart, allowing the diagram to flow across multiple pages or sections without intersecting lines. This use of connectors improves readability by preventing clutter from overlapping lines, making complex flowcharts easier to follow and understand while maintaining a seamless continuation of the process logic .

Flowchart rules facilitate the transition from algorithm design to programming implementation by enforcing structure and clarity through standardized symbols and rules. These rules guide developers in documenting algorithms clearly, identifying logical paths and decision points, and ensuring data flow is sequential and unambiguous. This preciseness helps developers translate the flowchart directly into code, minimizing errors and improving efficiency in coding by providing a comprehensive visual reference for implementation .

Flowcharts aid in algorithm optimization and troubleshooting by visually outlining the entire algorithm, making it easier to identify inefficiencies and logical errors. By clearly depicting the sequence of operations and decision points, areas needing improvement or causing issues become apparent. This visual clarity allows for targeted optimization, such as simplifying decision paths or reducing redundant steps, and facilitates debugging by allowing developers to trace logic paths where errors occur .

The use of a predefined process symbol simplifies complex flowchart designs by encapsulating detailed routines or sub-algorithms into a single symbol. This abstraction allows designers to avoid clutter by not detailing every step within the main flowchart, instead linking to a separately defined flowchart or routine. This consolidation aids in maintaining focus on the overarching process while modularizing complex logic into manageable segments .

General rules for flowcharting ensure clarity and consistency through several guidelines: all flowchart boxes must be connected with arrows to indicate flow; specific entry and exit points for symbols prevent ambiguity; decision symbols have two exit points to imply alternative paths; flow is typically top-to-bottom to maintain readability; connectors help manage large diagrams without clutter; subroutines use separate flowcharts to modularize the process, ensuring each segment is clear and independently understandable .

Distinct flowchart symbols enhance algorithmic communication by providing a visual language that standardizes how processes are documented. Symbols such as the Decision (Diamond) clarify logical branching, the Process (Rectangle) clearly indicates operations to perform, and the Input/Output (Parallelogram) marks data interactions. This clarity helps developers quickly understand the logic flow, identify potential improvements, and communicate complex processes effectively to others, thus enhancing collaborative development efforts .

Flowchart direction indicators, manifested as arrowheads and lines, play a crucial role in maintaining logical flow within a flowchart. They explicitly show the sequence of operations and data processing direction, ensuring that the flowchart reading follows the intended logic order. This prevents misinterpretation of the process steps and helps maintain clear communication of the algorithmic flow to developers, enhancing understanding and accuracy during implementation .

You might also like