You are on page 1of 19

Programming Logic & Design

RECAP
The IPO Chart
Develop Logic of Algorithm

Step 1
Proble Error
Step 2 Step 3
m Free
Analis Pseud Flow Algorit
ys o code Chart hm
- IPO
Exam
E
If…else
Sele
Ass
Ass
Example 1
Ex
Functions

Function prototype

Function Call

Function Head

Function Body
QUESTIONS- SELF EXERCISE

1. What is the output of the loop as it is written?


2. Correct the syntax of the loop so that the logic of the corrected loop corresponds to the formatting of the
original loop. What is the output of the corrected loop?
3. Provide hand tracing table for Question no 2.
4. Rewrite in “do..while” format

You might also like