|
COMP 112
Computer Programming (C & C++ )
|
Subject: Computer Programming |
Course Code: COMP 112 |
| Type: Core | FM: 100(50 int+50 final) |
Course Description: This course is designed to introduce students to Procedure Oriented Programming and Object Oriented Programming concepts on the assumption that they are not familiar with programming. Its main aim is to teach the principle of programming in two different paradigms, using C & C++, rather than attempting to give complete exposition of all the features of C & C++.
Contents:
- Introduction to Programming: Attributes of a good program, HLPL, MLPL, LLPL, popular programming languages, programming paradigms – procedure oriented programming and object oriented programming.
- C Fundamentals: The C character set, identifiers and keywords, data types, constants, variables and arrays, declarations, expressions, statements and symbolic constants.
- Operators and Expression: Arithmetic, unary, relational, logical, assignment and conditional operators.
- Data Input and Output: Input-Output functions
- Control Statements: Branching, looping, nested control structures, switch, break, continue, drawback of ‘goto' statement.
- Functions: Overview, defining and accessing a function, function prototypes, passing arguments to a function, recursion and its importance.
- Program Structures: Different types of variables & parameters, multi-file programs.
- Arrays: Defining and processing single and multi-dimensional arrays .
- Pointers: Fundamentals, pointer declarations, passing pointers to functions, pointers and one dimensional arrays, dynamic memory allocation, operations on pointers, pointers and multi-dimensional arrays, arrays of pointers, passing functions to other functions.
- Classes and Objects: Introduction, class declarations, constructors, constructor initialization lists, access functions, private member functions, copy constructor, class destructor, constant objects, structures, pointers to objects, static data members, static function members.
- Polymorphism: Overloading operators .
- Composition and Inheritance: Types of inheritance, construction, destruction, multiple inheritance.
Text Books:
Programming with C – Byron S. Gottfried
References:
The C Programming Language-
B. W. Kernighan and D. M. Ritchie
Programming with C++- John Hubbard
C++ How to Program
-
Dietel & Dietel
The C++ Programming Language
- Bjarne Stroustroup |