Professional Documents
Culture Documents
Sow CSC126 20224
Sow CSC126 20224
Sow CSC126 20224
SCHEME OF WORK
PREPARED BY: NORA YANTI CHE JAN
7
Topic 4: Repetition Control Structure
- Example of problems requiring repetition control structure
8 - Three requirements of a repetition structure: initialization, condition and updating
- Counter-controlled loop: for, while and do..while
- Sentinel-controlled loop: while and do..while
- Basic iterative problems: summation, average, counting, minimum, maximum
9
- Nested loops
10
Topic 5: Functions
- Introduction to functions
11
- Library functions and function calls
- User-defined functions
- Function header, function body and function call
- The concept of parameters
- Parameter passing: pass-by-value
- Return statement
12
- Parameter passing: pass-by-reference
- void functions
15 Study Week
16