0% found this document useful (0 votes)
17 views

Module 2 - Flowchart

Uploaded by

PizzaTobacco123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views

Module 2 - Flowchart

Uploaded by

PizzaTobacco123
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Module 2

Flowcharting
Check more funny flowchart here:
https://cacoo.com/blog/12-funny-
flowcharts-help-navigate-lifes-toughest-
decisions/

“The most important property of a
program is whether it accomplishes
the intention of its user.”
― C.A.R. Hoare
COURSE INTENDED
LEARNING OUTCOMES
CILO 3:
Develop pseudocode or algorithms and flowcharts.
LESSON
OBJECTIVES
Learn about flowcharting
Learn about the flowchart symbols and correct usage
Demonstrate the use of flowchart in analysing and solving programming problems

Apply flowcharts in C# programming


Flowchart Defined
• Use of symbols and phrases to designate the logic of how a
problem is solved.
• A common method for defining the logical steps of flow within a
program by using a series of symbols to identify the basic Input,
Process, and Output (IPO’s) function within a program.
Basic Symbols
in Flowcharting
Terminal
Used to signify the beginning and
end of flowchart.
Preparation/
Initialization
• Signifies the preparation of data
• Used to select initial conditions
• Used to represent instructions or groups
of instructions that will alter or modify a
program’s course of execution
Input / Output
• Shows input and output.
• Data are to be read into the computer
memory from an input device or data are
to be passed from the memory to the
output device.
Processing
• Performs any calculations that are to be
done.
• Used for computations such as formulas.
Decision
• Signifies decisions that are to be done.
• Two alternative execution paths are
possible.
• The path to be followed is selected
during the execution by testing whether
or not condition is specified within the
outline is fulfilled.
On Page Connector
• A non-processing symbol used to connect one
part of a flowchart to another without drawing
flow lines.
• Conserves space by keeping related blocks
near one another, reduces the number of
flowlines in complex programs and eliminates
cross lines from taking place.
Off Page Connector
• Designates entry to or exit from one page
when a flowchart requires more than one
page.
Flowlines
• Signifies the process that is to be executed
next.
Operators Commonly Used in Flowcharting
Arithmetic Operators Meaning
+ Addition
- Subtraction
* Multiplication
/ Division
% Modulo Division
Operators Commonly Used in Flowcharting
Relational/Comparison Operators Meaning

= Assignment Operator

> Greater Than

< Less Than

<> Not Equal

>= Greater than or equal to

<= Lesser than or equal to


Operators Commonly Used in Flowcharting

Logical Operators Meaning

&& AND

|| OR

! NOT
Example No.1
Design a flowchart that will accept and display
a number.
Example No. 2
Draw a flowchart that will compute and display
the sum of two numbers.
Example No. 3
Draw a flowchart that will determine if an inputted
grade is Passed or Failed. Passing grade is 70.
Thanks!
Any questions?
References:
• https://www.tutorialsteacher.com/csharp/csharp-operators
• https://www.tutlane.com/tutorial/csharp/csharp-operators-
precedence-with-examples

You might also like