You are on page 1of 6

Lovely Professional University, Punjab

Course Code

Course Title

Course Planner

CSE203

OBJECT ORIENTED PROGRAMMING


LABORATORY
Practical Course

15746::Gaurav Kumar Tak

Course Category

Lectures

Tutorials Practicals Credits

0.0

0.0

2.0

TextBooks
Sr No

Title

Author

Edition

T-1

WorkBook on C++

Sumit Mittu

1st

Year

Publisher Name
Cengage Learning

Reference Books
Sr No

Title

Author

Edition

R-1

Object oriented Programming with


ANSI and Turbo C++

Kamthane, Ashok N.

2nd

Pearson Education

R-2

Programming with C++

D Ravichandran

3rd

Mc graw Hill

R-3

Object Oriented Programming in C++ E Balagurusamy

5th

Tata McGraw Hill

R-4

Object Oriented Programming in C++ Robert Lafore

4th

Pearson

R-5

Object Oriented Programming with C M.T.Somashekara


++

2nd

R-6

C++ Primer

5th

Stanley B. Lippman,
Barbara E. Moo, Josee
Lajoie

Year

2012

Publisher Name

PHI Learning Pvt Ltd, New Delhi


Pearson

Other Reading
Sr No

Journals articles as Compulsary reading (specific articles, complete reference)

OR-1

http://accu.org/index.php/aboutus/aboutjournals ,

OR-2

http://www.drdobbs.com/cpp ,

OR-3

http://www.artima.com/cppsource ,

OR-4

http://ieeexplore.ieee.org/xpl/freeabs_all.jsp?arnumber=1406879&abstractAccess=no&userType=inst ,

OR-5

http://www.springer.com/engineering/electronics/book/978-3-540-25378-5 ,

Relevant Websites
Sr No

(Web address) (only if relevant to the course)

Salient Features

RW-1

http://www.research.att.com/~bs/bs_faq.html

Frequently asked questions in C++

RW-2

http://cplus.about.com

About C, C++ and C# brings the latest programming tutorials,


programming challenges,C++ for beginners

1.0

RW-3

http://www.learncpp.com

LearnCpp.com is a totally free website devoted to teaching you to


program in C++. Whether you've had any prior experience programming
or not, the tutorials on this site will walk you

RW-4

http://dl.acm.org/pub.cfm?id=J783&CFID=221321248&CFTOKEN=83276224

ACM (Association for Computing Machinery), the world's largest


educational and scientific computing society, delivers resources that
advance computing as a science and a profession

RW-5

http://www.newty.de/fpt/index.html

function pointers

RW-6

http://www.cplusplus.com/doc/tutorial/pointers/

Pointers

RW-7

http://www.cse.unr.edu/~bebis/CS308/PowerPoint/ReviewConstDestr.ppt

Manger Functions

RW-8

http://web.cs.wpi.edu/~cs2303/c10/Protected/Lectures-C10/Week5_DeeperClasses.ppt

Friend Functions

RW-9

http://www.lsp4you.com/cpp/lsp4you_cpp_unit9.ppt

Operator Overloading and Type conversions

RW-10

http://www.cs.virginia.edu/~gfx/glunch/STL.ppt

STL

RW-11

http://login2win.blogspot.in/2008/05/c-object-slicing.html

Object Slicing

Audio Visual Aids


Sr No

(AV aids) (only if relevant to the course)

Salient Features

AV-1

http://nptel.iitm.ac.in/video.php?subjectId=106102067

To give the students an exposure to learn through high level visual aids

Software/Equipments/Databases
Sr No

(S/E/D) (only if relevant to the course)

Salient Features

SW-1

http://www.codeblocks.org/home

To download Code Blocks Compiler for the successful execution of


cplusplus programs

SW-2

http://www.bloodshed.net/dev/devcpp.html

To download DEV- Cpp for the successful execution of cplusplus


programs

Sr No

(VL) (only if relevant to the course)

Salient Features

VL-1

http://deploy.virtual-labs.ac.in/labs/cse02/index.php?section=Introduction

The interactive experiments in this lab will give the students an


opportunity for learning and better understanding of the basic concepts
and constructs of computer programming

VL-2

http://iitkgp.vlab.co.in/?sub=38

It provides a suitable environment to improve abd refine the effectiveness


of scientific research and widening the use scarce equipments

VL-3

http://sourceforge.net/projects/vle/

Students need to download the system and study the complex


programming environment

Virtual Labs

Scheme for CA:

Component

Frequency

Performance

Out Of
8

Each Marks Total Marks


10

Total :-

10

80

10

80

*Each experiment of the lab will be evaluated using following relative scheme:
Component

% of Marks

Performance

100

Detailed Plan For Practicals


Practical No

Broad topic (Subtopic)

Practical Description

Learning Outcomes

Equipment Used

Practical 1

Basics of C++ Programming with classes


(Elements and Structure of C++ program
(Constants, Data Types, Storage Classes,
Variables, Identifiers) and Directives)

write a program to initiate


variables as static variable and as global
variable and show their
scope(instructions lab class), No
performance evaluation will held in P1.

To understand the basic structure of


programs and advantages of storage
class

Dev-C++,PCs,LCD Projectors

Basics of C++ Programming with classes write a program to find


To be able to code in a modular fashion Dev-C++,PCs,LCD Projectors
(Functions with parameters,Function
factorial and fibbonaci with recursion and
overloading,Recursion)
write a program to implement function
overloading based on different type of
argument and different number of
arguments, No performance evalaution
will held in P1.
Basics of C++ Programming with classes write a program to show the inline feature To be able to program using basic oops Dev-C++,PCs,LCD Projectors
(Inline functions and Default argument
and default argument feature,No
feature
functions)
performance evalaution will held in P1.
Practical 2

Practical 3

Basics of C++ Programming with classes


(Structures, Unions,Enumerations,Classes
and Type definition using typedef
statement)

write a program to enter the


To operate with heterogeneous data
data of a bank employee using Structures under one unit
and Union and show the difference in
memory allocation

Dev-C++,PCs,LCD Projectors

Array(Array declaration and processing


of array with insert operations, Update
operations, Delete operations, Search
operations)

write a program to insert an element into


given position inside an array, delete an
specified element from the array,search
an specific element within the array

Dev-C++,PCs,LCD Projectors

Pointers and String Class(Programs using


pointers,Reference and their variants in C
++,Function pointers,Dangling
pointer,Wild pointer)

write a program to create call by value


To able understand use of pointer and Dev-C++,PCs,LCD Projectors
function,call by address function and call reference variable in function prototype
by reference function and Write a
Program to show
possible problems related with pointers

Pointers and String Class(Programs using write a program to implement string


String class and it's objects)
operation with string class object

To understand the array operations

To understand the handling of string


objects

Dev-C++,PCs,LCD Projectors

Practical 4

Practical 5

Practical 6

Classes and objects(Programs to


write a program to access data member
To understand the use of pointer with
implement Array of objects, Classes
and member function of class using object objects
containing pointers, Pointer to objects, the pointer
this pointer)
Classes and objects(Programs
implementing classes and objects with
various members variants)

write a program to access data


memberusing objects

Classes and objects(Programs to


implement Constructor and Destructor
with their variants)

write a program to create time class


To understand the use of constructors
which assign the values of sec, min and
hours into data member using all type of
constructors at the time of object creation

Dev-C++,PCs,LCD Projectors

Classes and objects(Programs to


implement Inline and Non-inline member
functions, Static data members and static
member functions, Initializer lists)

write a program to define , member


To understand the use of static
function inline and non inline , static
members within the class
member functions and static data member
inside the class definition

Dev-C++,PCs,LCD Projectors

Classes and objects(Programs to


implement friend functions and friend
classes)

write a program to copy the


To access the private members of the
contents of one object of student class
class
into another object without using member
function

Dev-C++,PCs,LCD Projectors

Operator Overloading and Inheritance


(Programs to implement operator
overloading using unary and Binary
operator)

write a program to implement prefix and


postfix overloading

To be able to use same operator for


different puposes

Dev-C++,PCs,LCD Projectors

Operator Overloading and Inheritance


(Programs to implement multiple type
conversions(from Basic to Class
type,Class type to Basic type and Class
type to another Class type))

write a program to convert one class


object into another class object

To understand the type conversions


with userdefined data type

Dev-C++,PCs,LCD Projectors

Operator Overloading and Inheritance


(Programs to implement Aggregation
concepts)

write a program to demostrate


aggregation concept

To be able to use aggregation concepts Dev-C++,PCs,LCD Projectors


with programming

Operator Overloading and Inheritance


write a program to create two class
(Programs to implement inheritance with student and result using inheritance
different modes(public,private and
protected))

Practical 7

Dev-C++,PCs,LCD Projectors

To able to make the use of objects with Dev-C++,PCs,LCD Projectors


class members

To be able to reuse feature of oops

Dev-C++,PCs,LCD Projectors

Operator Overloading and Inheritance


(Programs to implement overriding of
member functions,Constructors,
Destructor of base class)

write a program to implment overriding To be able to use overriding features in Dev-C++,PCs,LCD Projectors
concepts based on base class and derived programs
class(p 7 is designed for test component
only, the test will cover the programming
practices of p1 to p6)

Operator Overloading and Inheritance


(Programs to implement overriding of
member functions,Constructors,
Destructor of base class)

write a program to implment overriding To be able to use overriding features in Dev-C++,PCs,LCD Projectors
concepts based on base class and derived programs
class(p 7 is designed for test component
only, the test will cover the programming
practices of p1 to p6)

Practical 8

Practical 9

Practical 10

Practical 11

Operator Overloading and Inheritance


(Programs to resolve ambiguities in
inheritance,Programs using virtual base
class/diamond structure of inheritance)

write a program to show


how ambiguity arises in hybrid
inheritance and the way to resolve it
(instruction lab class),No performance
evaluation will held in P8.

To be able to to resolve different


ambiguities in
inheritance

Operator Overloading and Inheritance


(Programs to allocate dynamic
memory,Programs of self-referential
class)

write a program to implement link list


using self referential class,No
performance evaluation will held in P8.

To be able use the dynamically created Dev-C++,PCs,LCD Projectors


objects memory space

Virtual functions and Files(Virtual


functions ,Pure virtual functions, Static
functions)

write a program to implement run time


polymorphism,No performance
evaluation will held in P8.

To understand virtual functions and


their role in oops

Dev-C++,PCs,LCD Projectors

Virtual functions and Files(This pointer


and abstract classes)

write a program to create the abstract


class and write a program to add data
members of two objects of same class
using this pointer

To be able to restrict the creation of


new object of abstract class

Dev-C++,PCs,LCD Projectors

Virtual functions and Files(Stream


classes, Disk file I/O with streams and
File handling operations)

write a program to implement the I/O


stream functions

To be able to use stream functions.

Dev-C++,PCs,LCD Projectors

Virtual functions and Files(Programs on


opening and closing of files and stream
state member functions)

write a program to appead


the file using file stream functions

To be able to use different file modes


according to need

Dev-C++,PCs,LCD Projectors

Virtual functions and Files(Programs to


read and write a character from a file)

write a program to copy the


contents of one file into another file and
to count the number of words in a file

To operate with different File handling Dev-C++,PCs,LCD Projectors


operations

Virtual functions and Files(Programs to write a program to read the file with
implement random acces file processing) random access

To be able to use random file


processing

Dev-C++,PCs,LCD Projectors

Dev-C++,PCs,LCD Projectors

Virtual functions and Files(Programs to


implement binary file operations)

write a program to use binary file as data To be able to use binary file operations Dev-C++,PCs,LCD Projectors
storage

Templates, Exceptions and Standard


Template Library(Function template and
class template)

write a program to add two


different types of values whether integer
or float using Function templates and
Write a program to create multiple class
and design class template in such a way
that the class member function is
responsible to receive any other class
object as arguments

To be able to understand the generic


programming advantage

Dev-C++,PCs,LCD Projectors

Templates, Exceptions and Standard


Template Library(Exception Handling)

write a program to illustrate


that we can have single catch statement
corresponding to different types of
exceptions in a single try block

To handle the exceptions in a


standardized manner

Dev-C++,PCs,LCD Projectors

Practical 12

Templates, Exceptions and Standard


write a program to
To be able to use STL
Template Library(Container Vector and demonstrate how vector provides random
Lists)
access unlike List

Dev-C++,PCs,LCD Projectors

Practical 13

Templates, Exceptions and Standard


write a program to implement algorithm To be able to use algorithm and
Template Library(Algorithm and iterators and iterators in context of vectors and list iterators in programming
in context with vectors and list)
based on STL(p 14 is designed as test
which will cover programming practices
of p 8 to p 13)

Dev-C++,PCs,LCD Projectors

Practical 14

Templates, Exceptions and Standard


write a program to implement algorithm To be able to use algorithm and
Template Library(Algorithm and iterators and iterators in context of vectors and list iterators in programming
in context with vectors and list)
based on STL(p 14 is designed as test
which will cover programming practices
of p 8 to p 13)

SPILL OVER
Practical 15

Spill Over

Dev-C++,PCs,LCD Projectors

You might also like