Professional Documents
Culture Documents
Course Objective:
The Objective of the course is to
Analyze a given program for all possible errors and rewrite the corrected code.
Apply the concepts of programming to solve real world problems.
Analyze the program for possible output.
Lab Objective:
The Objective of the lab is to
Display the development of logical codes by applying the concepts of structural and basic
programming constructs.
Modify a program to produce a program with new features.
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.
Recommended Books:
Robert Lafore, “Object Oriented Programming in C++”, 4 th edition, Pearson Edition, 2002, ISBN
10: 0672323087
References: Dietel and Dietel, “C++ How to Program”, 10th edition, Pearson, 2014, ISBN: 978-
0134448237.
Office Hours:
• Monday, 08:00 AM– 10:00 AM
• Wednesday, 08:00 AM– 10:00 AM
• All Week, 01:00 PM-02:00 PM
•
Grading Policy:
75% class attendance is mandatory to appear in the examination.
Course grades will be determined by the following weights:
Schedule of Exams:
Commencement of Classes:
Mid Examination:
Final Examination:
Results Notification:
PUNJAB TIANJIN UNIVERSITY OF TECHNOLOGY
Department of Mechanical Engineering Technology
This course has been taught and successfully complete in the Department of Mechanical
Engineering Technology, Punjab Tianjin University of Technology Lahore, Pakistan.