ECEG2052 Course Outline
ECEG2052 Course Outline
Prerequisite: None
Year: I Semester: II
Course Description
This course teaches problem solving using computers, algorithms, program structure, constants, types,
variables, reserved words, syntax diagram, identifiers, numbers, character strings and constant
declarations; basic data types, statements (assignment, I/O, control), structured data types, subprograms,
file management; recursive functions; overloaded functions; linking multiple source files; and data
structures. Concrete examples enable the students to write a program and uses data structure elements in
the programs.
Course objectives
On completion of the course successfully, students will be able to:
➢ Apply programming skills to solve problems
➢ Understand basic concepts in computer science such as Boolean logic and problem decomposition
➢ Learn data structures (such as strings, matrices and arrays), logic and control structures (such as ‘if’
and ‘for’ statements), data manipulation and presentation (loading data files, computing simple
statistics and graphing data), and proper programming techniques (writing modular, well-
commented code)
➢ Understand programming concepts that will assist in learning other languages (like Java, Perl, or
C#)
➢ Learn about computing resources on campus and online
➢ Analyze simple problems and formulate solutions
➢ Develop computer programs for quality program solving
➢ Practice good programming disciplines and styles
Course outline
Chapter 1: Introduction
Teaching-learning methods
Two contact hours of lectures, three contact hours of lab and 1 contact hour of tutorials per week.
Assessment methods
➢ Assignments/quizzes 10%
➢ Lab exams/Project 20%
➢ Mid semester examination 30%
➢ Final examination 40%
References:
1. Ravichandran; “Problem Solving with C++”, Tata Mc. Grew Hill Company
2. Charles R. Severance, Python for Everybody: Exploring Data Using Python 3, 2016
3. E.Balagurusamy, “Programming with C”, Tata Mc. Grew Hill Company
Laboratory Course Outline
Week 1
➢ Lab Environment setup
➢ Building blocks of a code
➢ First code “Hello, World”
Week 2
➢ Data types and variables
➢ Using variables and constants
➢ Statements
Week 3
➢ Operators
➢ Basic arithmetic operators
➢ Arithmetic and logical operations
Week 4
➢ If
➢ If…else
➢ If...elseif...else
➢ Nested if ...else statements
➢ Switch statement
Week 5
➢ For loop statement
➢ While loop statement
➢ Do…while statement
➢ Nested loops
Week 6
➢ Definition of function
➢ Declaration of function
Week 7
➢ Passing value of a function by Value
➢ Passing value of a function by reference
Week 8
➢ One-dimensional array
Week 9
➢ Multi-dimensional array
Week 10
➢ String