Computer Programming
Computer Programming
1. Course Description
This course is designed to encompass the fundamental concepts of structured programming
and object-oriented programming. It deals with functions, structures and file handling to
develop the software systems. The course will be delivered through the uses of lectures, self-
learning by students, exercises and tests.
2. General Objectives
To provide the students with the concepts and implement structured and object-oriented
programming languages.
3. Methods of Instruction
Lecture, discussion, readings, Lab works, Project works
4. Contents in Detail
1
3.5 Data types
3.6 Constants, variables and their declaration
3.7 Formatted input/output functions
3.8 The C Operators
3.9 Control structures- branching statements (if, if-else and
switch statements), looping statements (for, while and
do-while loop)
Apply concepts of arrays Unit IV: Arrays and Structures in C (5 hrs)
and structures to store the 4.1 Arrays (one dimensional and multi-dimensional arrays),
homogenous and 4.2 Initialization of arrays and accessing the elements of
heterogenous types of data. arrays
4.3 Character arrays (strings)
4.4 Structure and union.
Application of functions and Unit V: Functions and Pointers in C (9 hrs)
pointers in a program. 5.1 Functions and their importance
5.2 Declaration of a function
5.3 Structure of a function and return statement
5.4 Library and user-defined functions
5.5 Function arguments and return types
5.6 Local and global variables
5.7 Calling a function- call by value
5.8 Pointers, pointer operators and pointer arithmetic
5.9 Returning multiple values form functions using
pointers.
Describe the concept of the Unit VI: Introduction to C++ (6 hrs)
object-oriented 6.1 Procedure-oriented vs object-oriented programming
programming using C++. 6.2 Concepts of object-oriented programming (object, class,
abstraction, encapsulation, inheritance and
polymorphism)
6.3 Origin of C++
6.4 Features of C++
6.5 C++ program structure
6.6 Input/output streams
6.7 Access specifiers
6.8 Objects and accessing data members and member
functions
6.9 Constructors (default and parameterized) and
destructors
Use the concept of the Unit VII: Object-Oriented Programming Concepts (8
object-oriented hrs)
programming using C++. 7.1 Inline function
7.2 Friend function
7.3 Function overloading
7.4 Inheritance and its types (single, multiple and multi-
level)
7.5 Function overriding
7.6 Template function
2
7.7 Exception handling
Students should submit a final project that uses the concepts of C or C++ studied in this
course. The marks for the practical will be based on the project work.
6. List of Tutorials
The various tutorial activities that suits your course should cover all the content of the course
to give students a space to engage more actively with the course content in the presence of
instructor. Students should submit tutorials as assignments or class works to the instructor for
evaluation. The following tutorial activities of 15 hours should be conducted to cover the
content of this course:
3
7. Evaluation System and Students’ Responsibilities
Evaluation System
The internal evaluation of a student may consist of assignments, attendance, term-exams, lab
reports and projects etc. The tabular presentation of the internal evaluation is as follows:
Student Responsibilities
Each student must secure at least 45% marks in internal evaluation with 80% attendance in
the class in order to appear in the Semester End Examination. Failing to get such score will
be given NOT QUALIFIED (NQ) and the student will not be eligible to appear the Semester-
End Examinations. Students are advised to attend all the classes, formal exam, test, etc. and
complete all the assignments within the specified time period. Students are required to
complete all the requirements defined for the completion of the course.
Text Books
1. Gottfried, B. Programming with C. New Delhi: McGraw-Hill.
2. Lafore, R. Object Oriented Programming in C++. USA: SAMS Publication.
References
1. Kernighan, B. W. & Ritchie, D. M. The C Programming Language. USA: Prentice Hall
Publication.
2. Balagurusamy, E. C programming. New Delhi: McGraw-Hill.
3. Balagurusamy, E. Object-oriented programming with C++. New Delhi: McGraw-Hill.