Week 2 Flashcards
1
Q
Case structure?
A
CASE OF tax_code 0 : sales_tax = 0 1 : sales_tax = purch_amt * 0.03 2 : sales_tax = purch_amt * 0.05 ENDCASE
2
Q
3 Jenis Repetition?
A
- Leading decision loop
- Trailling decision loop
- Counted loop
3
Q
DOWHILE
A
termasuk Leading decision loop. Condition di test dlu baru eksekusi.
Format:
DOWHILE condition p is true
statement block
ENDDO
4
Q
REPEAT…UNTIL
A
Format: REPEAT statement statement UNTIL
5
Q
DO
A
Format:
DO loop_index = initial_value to final_value
statement block
ENDDO
6
Q
Prinsip structured programming?
A
one entry point, one exit point