Visual Programming Week # 10 Iteration(Loops)
VP Lecture Note by Dr. Hanh Pham Outline Iterations Examples References VP Lecture Note by Dr. Hanh Pham
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
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
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
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
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