COMPUTER PROGRAMMING (Credit Hours.
1+1)
Objectives:
The main objective of the course is to familiarize students with computer processing:
Compile variety of programs in text as well as graphic user interface computer
language.
Improve programming skills.
Course Outline:
Basics of C++ programming: constants and variables, keywords, identifiers, data
types, variables and their types, Escape sequence, operators and statements.
Decision and control:
if statements, if-else-if statement, switch statement, for loop, while loop, do-
while loop, nested loops, break statement, Functions: defining a function, types
function, return statement, default argument, local and global variables,
standard function and user defined functions, multifunction, arguments pass as
reference or as a value. Arrays: declaration, initialization, arrays and function,
multidimensional arrays.
Structures:
Declaration, initialization, functions and structures, arrays of structure, nested
structure, enumerations. Classes: declaration, initialization, constructors,
destructors, inline member function, static class member, friend function,
defining and accessing object, arrays of class object, structure and classes,
nested classes.
Inheritance: single inheritance, types of base classes, types of derivation,
multiple inheritance containers. Overloading: function, operator, binary and
unary Polymorphism: early and late binding, virtual functions, pure virtual
function abstract base classes, virtual destructors, virtual base classes,
constructor and destructor under inheritance.
Lab Outline:
Study the integrated development environment for C++ language
Basic structure of C++ program
Programming experiment in C++ programming
Experiments in C++ to cover operators.
Functions, arrays and strings, control and decision, structures, classes,
inheritance and polymorphism.
Recommended Books:
Lafore R. “Object-Oriented programming in C++” practice Hall latest edition.
Schildt. H. “C++ the complete Reference”, McGraw-Hill Latest Edition.
Deital D. “C++ how to program”, prentice Hall, Latest Edition