COMPUTER PROGRAMMING
2.1 Lecture:
2 hours per week for 13 weeks (Total = 26 hours)
2.2 Laboratory / Tutorial:
4 hours per week for 11 weeks (Total = 44 hours)
3.0 ASSESSMENT / EVALUATION CONTRIBUTION: (40% FINAL EXAM AND 60% COURSE
WORK)
TOTAL 100%
1
4.0 REFERENCES:
4.1 Deitel and Deitel, Sudin, S., Ahmad, R.B. and Yacob, Y., “C How To Program”, Pearson-
Prentice Hall, 2006.
4.2 Cheng, H., “C for Engineers and Scientists”, McGraw Hill, 2010.
4.3 Hanly, J.R. and Koffman, E.B., “C Program Design for Engineers”, 2 nd Ed., Addison-Wesley,
2001.
2
6 List of Topics
4. C Program Structures
4.1. Selection Structures (if, if-else, if-else if, switch-case)
4.2. Nested Selection Structures
4.3. Repetition Structures (Loop) (while, do-while, for)
4.4. Nested Loop Structures
5. Functions
5.1. Predefined (e.g. Math, String)
5.2. User-defined
5.3. Prototype, define and call
5.4. Scope (Global and Local)
5.5. Passing Arguments (by value and reference)
5.6. Recursive Function
6. Arrays
6.1. Arrays of Data
6.2. Array Declaration
6.3. Array Initialization
6.4. Operations on Array
6.5. Multidimensional Arrays
6.6. Index out of bound
6.7. Passing Arrays to Function
6.8. Displaying Array in a Function
6.9. How Array are passed in a function call
7. Strings
7.1. Strings Type
7.2. Character Array
7.3. Declaration of Strings
7.4. Fundamentals of Strings & Characters
7.5. Initialization of Strings
7.6. Assigning values to Strings
7.7. Calculating of Strings Size
7.8. Strings Conversion Functions
7.9. Comparison Functions of the Strings
7.10. ASCII Table
8. Pointers
3
9. Structures
9.1. Structure Definitions and Declaration
9.2. Initializing Structure
9.3. Operations on Structure members
9.4. Structures as Functions Parameters
9.5. Array of Structures
4
TEACHING PLAN
EKT120/4 COMPUTER PROGRAMMING
SEMESTER 1 SESSION 2014/2015
WEEK DATE SYLLABUS LAB ACTIVITY
NOTES
LAB SESSION 1 LAB SESSION 2
5 6 -10 Functions –Predefined (e.g Math and String) Lab Exercise 5: LAB ASSIGNMENT 2: Hari Raya Aidil Adha –
Oct Functions-User-defined Repetition Structures Repetition Structures 6-7 Oct 2014
Function prototype, call and def (Loop)
6 13 – 17 Functions –Predefined (e.g Math and String) Lab Exercise 6: Lab Exercise 6:
Oct Functions-User-defined Functions 1 Functions 1 TEST 1 (1.5 HOURS)
Function prototype, call and def Cover from Intro until Loop
5
20 – 26 MID SEMESTER BREAK Deepavali-23 Oct 2014
Oct Awal Muharam-25 Oct 2014
7 27 Oct -31 Functions –Scope (Global and Local) Lab Exercise 7: Lab Exercise 7:
Oct Functions – Passing Arguments (by value and by reference) Functions 2 Functions 2
Recursive function
8 3–7 Arrays (Declaration, usage and operation) LAB ASSIGNMENT 3: Lab Exercise 8:
Nov Multidimensional Arrays Functions Arrays 1