Intro C++ ProgrammingSyllabus(2)
Intro C++ ProgrammingSyllabus(2)
Unit – I 5 Hrs
Introduction to Object Oriented Programming Concepts: Principles of object oriented programming:
Procedure oriented programming Vs object oriented programming, Underlying concepts of object oriented
programming, Benefits and applications of object oriented programming. The Origins of C++, A Closer Look at
the I/O Operators, The bool Data Type, The C++ Headers, Namespaces, C++ programming fundamentals,
Introducing C++ Classes & objects, Constructors and Destructors, The C++ Keywords.
Unit – II 6 Hrs
Classes & Objects: Discovering Classes, Interfaces, Encapsulation, Abstraction, Member Functions, Classes
and Objects, Object has an interface, Structures and Classes, Unions and Classes, Friend Functions, Friend
Classes, Inline Functions, Static Class Members, Static Data, Static Member Functions, Constructors and
Destructors, The Scope Resolution Operator, Nested Classes, Local Classes, Passing Objects to Functions,
Returning Objects, Object Assignment and Accessing Data Fields.
Course Outcomes: After completing the course, the students will be able to
Exhibit program design and implementation competence through the choice of appropriate object
CO 1:
oriented concept and explain the benefits of the same.
CO 2: Design and analyse the classes and objects using object oriented programming paradigm, for real world
case studies.
CO 3: Implement the solutions for real-time problems using Object Oriented concepts.
CO 4: Apply and analyze the advanced features of C++ specifically templates and operator overloading which
influences the performance of programs.
Reference Books
The Complete Reference C++, Herbert Schildt, 5th Edition, 2020, McGrawHill, ISBN: 9780070532465.
C++ How to Program, Paul Deitel and Harvey Deitel, 8 th Edition, 2018, Prentice Hall, ISBN:
2.
9780132990448.
3. Big C++, Cay S. Horstmann, Timothy Budd, 1st Edition, 2020, Wiley India (P.) Ltd ISBN: 9788126509201.
Thinking in C++-Introduction to standard C++, Bruce Eckel, http://iacs-
4. courses.seas.harvard.edu/courses/cs207/resources/TIC2Vone.pdf Vol 1, 2 nd Edition, 2002 , Pearson,
ISBN:10: 8131706613
Laboratory Component
Implement the following programs using cc/gcc compiler
1 Implement the following requirement: An electricity board charges the following rates to domestic
users to discourage large conceptions of energy.
0 - 100 units : Rs 1.50 per unit
101 - 200 units : Rs 1.80 per unit
Beyond 200 units: Rs 2.50 per unit
All users are charged a minimum of Rs 50. If the total amount is more than Rs 300 then an additional
surcharge of 15% is added. The C++ program must read the names of users, number of units
consumed and display the calculated charges.
2 Design and implement a class STUDENT with attributes like: roll number, name, 3 tests marks.
2 Implement member functions
a. to read student data like name and test marks,
a. to compute average marks (considering best two out of three test marks) and
a. to display the student information.
Declare an array of STUDENT objects in the main function, use static data member to generate
unique student roll number.
3 Design and implement a C++ program using class to process Shopping list for a departmental store.
3 The list include details such as the Code No., Name, Price of each item and operations like adding,
deleting items to the list and printing the total value of an order.
3 Design and implement a C++ class POLYNOMIAL. The internal representation of a POLYNOMIAL
4 is an array of terms. Each term contains a coefficient and an exponent, e.g., the term 2x 4 has the
coefficient 2 and the exponent 4. Implement a class containing constructors and the following
capabilities:
a. Overload the addition operator (+) to add two polynomials
a. Overload the assignment operator to assign one polynomial to another
a. Overload the multiplication operator (*) to multiple two polynomials
a. Overload the >> operator to enable input through in.
a. Overload the << operator to enable output throughout.
a. Member function to compute value of the polynomial, given the value of x.
33Design and implement a C++ program to create an abstract class - SHAPE to represent any shape in
5 general. The class should have two pure virtual functions to read dimensions and to compute the
area. Create three derived classes - CIRCLE, RECTANGLE, and SQUARE by inheriting the
features of class SHAPE. Implement the functions to read and compute the area. Add constructors,
method to display the results as required. (Assume appropriate attributes).
Write a C++ program using generic class to implement queue of integers, floating point numbers
6 and strings. Support the queue operations like insert, delete and display in the queue class.
7 Write a C++ program to create a vector of integers. Copy the vector contents into a list, sort the
contents, then copy selected items into another vector (like elements less than 10 etc).
8 Write a template function to search for a given key element from an array. Illustrate how you
perform search in integer, character as well as double arrays using the same template function.
CONTINUOUS INTERNAL EVALUATION
ASSESSMENT AND EVALUATION PATTERN
Theory & quizzes questions are to be framed using Bloom’s Taxonomy Levels - Remembering, Understanding,
Applying, Analyzing, Evaluating, and Creating
CIE SEE
WEIGHTAGE
(50%) (50%)
A. QUIZZES: Each quiz is evaluated for 10 marks
Quiz-I for 10 Marks
20 *****
Quiz-I for 10 Marks
B. TESTS: Each test will be conducted for 50 Marks adding upto 100 marks. Final test marks will be reduced
to 40
Test – I for 50 Marks
40 *****
Test – II for 50 Marks
C. EXPERIENTIAL LEARNING:
Design, develop and implement an application using the appropriate OOP concepts.
Demonstration of Abstraction/Encapsulation/Data Hiding and Polymorphism concepts –
10Marks 40 *****
Demonstration of Interfaces, abstract classes and Inheritance concepts – 15 Marks
Demonstration of Exception Handling and generic programming concepts-15 Marks
MAXIMUM MARKS FOR THE THRORY (A+B+C) 100 100
PRACTICALS 50 *****
TOTAL MARKS FOR THE COURSE 150 100