Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visual Programming Week # 10

Similar presentations


Presentation on theme: "Visual Programming Week # 10"— Presentation transcript:

1 Visual Programming Week # 10
Iteration(Loops)

2 VP Lecture Note by Dr. Hanh Pham
Outline Iterations Examples References VP Lecture Note by Dr. Hanh Pham

3 VP Lecture Note by Dr. Hanh Pham
Iteration Iteration = Repeat the SAME blocks LOOP = a set of Blocks which will be repeated Important Question: How & When will we get OUT of the LOOP ? VP Lecture Note by Dr. Hanh Pham

4 VP Lecture Note by Dr. Hanh Pham
Examples of Iteration Example 1: Send the SAME text to many phone numbers Without LOOP With a ForeEACH Loop VP Lecture Note by Dr. Hanh Pham

5 VP Lecture Note by Dr. Hanh Pham
Examples of Iteration Example 2: Display MANY phone numbers With a ForeEACH Loop VP Lecture Note by Dr. Hanh Pham

6 VP Lecture Note by Dr. Hanh Pham
Examples of Iteration Example 3: Display the question-answer pairs from two parallel lists With a WHILE loop VP Lecture Note by Dr. Hanh Pham

7 VP Lecture Note by Dr. Hanh Pham
Examples of Iteration Example 4: Compute a Formula , WHAT will be the OUTPUT ? With a WHILE loop VP Lecture Note by Dr. Hanh Pham


Download ppt "Visual Programming Week # 10"

Similar presentations


Ads by Google