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

Module 2 - Repetition - Iteration Flowchart

The document discusses loop flowcharts, which are used to repeat an action or series of actions based on a given condition. It describes the main parts of a loop as the loop body, which contains the statements to be repeated, and the loop condition, which controls the iteration. The document then provides examples of different types of loop flowcharts, including for, while, and do-while loops. It concludes with drill activities for students to create flowcharts solving problems using various loop structures.

Uploaded by

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

Module 2 - Repetition - Iteration Flowchart

The document discusses loop flowcharts, which are used to repeat an action or series of actions based on a given condition. It describes the main parts of a loop as the loop body, which contains the statements to be repeated, and the loop condition, which controls the iteration. The document then provides examples of different types of loop flowcharts, including for, while, and do-while loops. It concludes with drill activities for students to create flowcharts solving problems using various loop structures.

Uploaded by

Nicole Follero
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Programming Logic and Design

TOPIC TITLE: LOOP/ITERATION FLOWCHART


SPECIFIC OBJECTIVES:

At the end of the topic session the students are expected to:

1. Describe what is a loop flowchart.


2. Describe the types of loop flowchart.
3. Explain the flow of loop flowchart.
4. Solve problems using loop flowchart.

MATERIALS/EQUIPMENT:

1. Powerpoint Presentation
2. Word Designed Module

TOPIC PRESENTATION:

Flow of discussion for Introduction to flowcharting:

1. Introduce loop flowchart.


2. Discuss the flow of loop flowchart.
3. Discuss the types of loop flowchart.
4. Give examples and exercises.

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 1 of 18


Programming Logic and Design

Loop Flowchart

Used to repeat an action or series of action based

on the given condition.

Main Parts of a loop:

1. Loop body – statements or block of statements

to be repeated.

2. Loop condition – used to control the iteration

either to continue or stop iterating.

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 2 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 3 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 4 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 5 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 6 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 7 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 8 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 9 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 10 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 11 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 12 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 13 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 14 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 15 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 16 of 18


Programming Logic and Design

Drill Activity: Create a flowchart for the following problem below:

1. Flowchart to find sum and average of 10 numbers.

2. Flowchart to find even numbers between 1 to 50.

3. Flowchart to find odd numbers between 1 to n where n is a positive integer.

4. Create a for loop flowchart for the given problem below:

Given numbers[1,2,3,4,5]

Num = becomes the first number in the series of numbers

Displaying the num is executed as long as there is a number in the list.

REFERENCES:

 Introduction to Flowcharting and Algorithm

 Introduction to C++ Programming Logic

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 17 of 18


Programming Logic and Design

Prepared by : FREDDIE M. TAMAYAO, MENG-CPE, CISSP Page 18 of 18

You might also like