Professional Documents
Culture Documents
Lesson 03
Lesson 03
Chapter 2 - Lesson 3
Execution Flow
Semester: 8th Instructor : Ziaur Rahman
Lecture: Khalilullah Khalid
Computer Science Faculty
Prepare by: Khalilullah Khalid year: 1402
JAHAN UNIVERSITY
Contents
• Sequential Flow
• Decisional Flow
• Quadratic equation
1
Sequential Flow
❑
If nothing is specified then the modules the executed in the
sequence in which they are written. Thus in it the modules are
executed one after the other.
2
Conditional Flow
❑ There are various conditions on the basis of which one module is selected out
of several given modules.
3
Single Alternative:
This is the simplest decision control structure. It includes a statement or block or
statement on the “true” path only.
4
Double Alternative
This type of decision control structure includes a statement or block of statement
on both paths. If condition is true then executes one statement otherwise execute
the fall statement.
5
Multiple Alternative
According to this only one of the modules will
be executed. If condition 1 is true then module
A1 will be executed. Otherwise condition 2 will
be checked. If condition 2 is true then module
A2 will be executed. And so on. If none of the
conditions is true then module B will be
executed. Its flowchart is:
6
Repetitive Flow
In this flow loops are implemented. Loop is used to implement those statements
which are to be repeated again and again until some condition is satisfied. It
implements while and for loops. Each of these begin with Repeat statement
7
Summery & Students Evaluation
• Sequential Flow
• Decisional Flow
Array
13