COMSATS University Islamabad, Sahiwal Campus
Department of Civil Engineering
Document Code: DCVE-CDF- (CSC142)
fffsfsdf223123sdff5sdfsfffggggMMEEMEE
Introduction to Computer
Course Description Programming
Course Code: CSC142
File Course Credit Hours: 2+1
Required Pre-requisite: Nil
Course Preview/Course Objective
This course emphasis the basic concepts used in programming. The topics
include: Computer Programming; Basic Syntax & Semantics of a Higher-Level
Language; Conditional & Iterative Control Structures; Functions & Parameter
Passing; Recursion; Arrays; String Processing; Exception Handling; Refactoring;
Debugging; Modern Programming Environments; Testing Fundamentals; and File
I/O.
Course Contents
Unit 1: Introduction of Computers, Fundamental Concepts of Programming,
Program Development Methods
Unit 2: Basic Syntax & Semantics of a Higher-Level Language: Program Style &
Documentation; Variables & Primitive Data Types; Expressions & Assignments; and
Simple I/O.
Unit 3: Conditional & Iterative Control Structures
Unit 4: Arrays; and String Processing, Pointers
Unit 5: Functions & Parameter Passing; and Recursion
Unit 6: Structures
Unit 7: File Handling
Unit 8: Exception Handling; Refactoring; Debugging; Modern Programming
Environments.
Text and Reference Books
Department of Civil Engineering, COMSATS University Islamabad, Sahiwal Campus Page 1 of 6
COMSATS University Islamabad, Sahiwal Campus
Department of Civil Engineering
■ Object-Oriented Programming in C++, Robert Lafore, Fourth Edition, 2002,
Prentice Hall, ISBN-13: 9780672323089
■ Programming and Problem Solving with C++, Nell Dale, 6th Edition, 2014. ISBN:
9781284076592
Program Learning Outcomes (PLOs)
The course, Introduction to Computer Programming, is designed so that students
will achieve the following PLOs:
PLO
PLO Description
No.
06 The Engineer and Society: An ability to apply reasoning informed by
contextual knowledge to assess societal, health, safety, legal and
cultural issues and the consequent responsibilities relevant to
professional engineering practice and solution to complex engineering
problems.
10 Communication: An ability to communicate effectively, orally as well as
in writing, on complex engineering activities with the engineering
community and with society at large, such as being able to comprehend
and write effective reports and design documentation, make effective
12 presentations, and give and receive clear instructions.
Lifelong Learning: An ability to recognize importance of, and pursue
lifelong learning in the broader context of innovation and technological
developments.
Course Learning Outcomes (CLOs)
The course, Introduction to Computer Programming, is designed so that students
will achieve the following CLOs:
CLO Taxonomy Mappe
CLO Description
No. Level d PLOs
01 Demonstrate the fundamental concepts of C2-
programming Understand
02 Employ programming constructs using a C3-Applying
programming
Language
03 Handle programs utilizing exception and file I/O. C3-Apply
04 Implement a program using programing C3-Apply
constructs.
Department of Civil Engineering, COMSATS University Islamabad, Sahiwal Campus Page 2 of 6
COMSATS University Islamabad, Sahiwal Campus
Department of Civil Engineering
05 Build a medium size application in a team C6-Creating
environment
Department of Civil Engineering, COMSATS University Islamabad, Sahiwal Campus Page 3 of 6
COMSATS University Islamabad, Sahiwal Campus
Department of Civil Engineering
Week-wise Lecture Plan
Week-wise lecture plan for this course is given in the below table.
Week Topic covered Reference
No. book
Introduction to computer programming, Object-Oriented
fundamental concepts, programming paradigms Programming in
(structured, object-oriented, functional), C++, Robert
01
introduction to higher-level languages and the Lafore
compile–link–run cycle, and types of
programming errors.
Basic syntax and semantics of programming Object-Oriented
languages including comments, identifiers, Programming in
reserved words, documentation, and program C++, Robert
02
style. Introduction to variables, constants, Lafore
declaration, initialization, and simple input
statements.
Primitive data types, expressions, assignments, Object-Oriented
arithmetic operators, order of precedence, type Programming in
03
conversion, and increment/decrement operators C++, Robert
with formatted output. Lafore
Control structures including relational operators, Object-Oriented
Boolean data types, logical operators, logical Programming in
04
expressions, and precedence rules. C++, Robert
Lafore
Selection statements including if, if-else, Object-Oriented
compound statements, multiple selections, Programming in
05
conditional operator, short-circuit evaluation, and C++, Robert
switch structure. Lafore
Iterative structures including while loops, Object-Oriented
designing loops, counter-controlled, sentinel- Programming in
06
controlled, and flag-controlled loops. C++, Robert
Lafore
Additional looping constructs including for loops, Object-Oriented
do-while loops, and loop control statements Programming in
07
(break and continue). C++, Robert
Lafore
Arrays (one-dimensional) including declaration, Object-Oriented
initialization, processing arrays, array length, and Programming in
08
handling array index exceptions. C++, Robert
Lafore
09 Midterm Examination Object-Oriented
Department of Civil Engineering, COMSATS University Islamabad, Sahiwal Campus Page 4 of 6
COMSATS University Islamabad, Sahiwal Campus
Department of Civil Engineering
Programming in
C++, Robert
Lafore
Arrays with methods including passing arrays as Object-Oriented
parameters, methods returning arrays, Programming in
10
command-line arguments, and two-dimensional C++, Robert
arrays. Lafore
Introduction to methods, static vs non-static Object-Oriented
methods, main() method, predefined library Programming in
11
methods (Math, Character), and method design C++, Robert
basics. Lafore
User-defined methods, defining and calling Object-Oriented
methods, void methods, returning values, and Programming in
12
parameter passing (pass-by-value). C++, Robert
Lafore
Method-call stack, activation records, method Object-Oriented
overloading, scope of variables, and introduction Programming in
13
to recursion and recursive problem solving. C++, Robert
Lafore
Exception handling concepts including try-throw- Object-Oriented
catch, exception hierarchy, checked vs Programming in
14
unchecked exceptions, and finally clause. C++, Robert
Lafore
File I/O (files, streams, PrintWriter, Scanner). Object-Oriented
Programming in
15
C++, Robert
Lafore
File I/O (files, streams, PrintWriter, Scanner). Object-Oriented
Programming in
16
C++, Robert
Lafore
Debugging, modern programming environments, Object-Oriented
code refactoring, Programming in
17
C++, Robert
Lafore
18 Terminal Examination
Department of Civil Engineering, COMSATS University Islamabad, Sahiwal Campus Page 5 of 6
COMSATS University Islamabad, Sahiwal Campus
Department of Civil Engineering
Course Assessment Criteria
Evaluation will be competency based and student
grades will be based on the criteria shown in the pie
chart.
Note: This CDF is applicable from the Spring 2024 semester.
Department of Civil Engineering, COMSATS University Islamabad, Sahiwal Campus Page 6 of 6