0% found this document useful (0 votes)
21 views

Object Oriented Program Using C++ Lab - 306

Uploaded by

bharatiyan3
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Object Oriented Program Using C++ Lab - 306

Uploaded by

bharatiyan3
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Computer Laboratory and Practical Work of OOPS

Undergraduate

MODULE MANUAL

Instructor:
Prof. Alok Kapil
[email protected]

Semester Third
Session – 2022-2025

© Institute of Technology and Science


Contents

1. Module Descriptor

2. Course Objective & learning outcomes

3. Mode of assessment

4. University Syllabus

5. Module format

6. Reading

7. Key dates

8. About lecture and pedagogy

Computer Laboratory and Practical Work OOPS


Prof. Alok Kapil
Module Descriptor

Module Title: Object Oriented Programming using C++

Academic Year: 2022-2025 Total Lab Sessions: 28

Time (per Lecture): 55 minutes Paper ID:BCA-306

Semester: III

Course Objective:
To ensure a smooth and successful transition to being a skilled
Programmer.
To enhance the programming skills using the C++.

Learning Outcomes:
After undergoing this LAB the student will become aware of the object oriented
programming concepts and their application using C++.

Prerequisite knowledge:
1. Student must be aware about the fundamental elements of C
Language.
2. It is assumed that the reader is familiar with the fundamental and
logically understanding of the programs.

Mode of Assessment:
Duration
1 Assessment Type Marks
(hours)
1 Lab sessions Internal Examination
2 hour 30

Description
Examination include program execution and viva-voce

Duration
2 Assessment Type Marks
(hours)
Class assessment on the basis of ---- 20
Description

Computer Laboratory and Practical Work OOPS


Prof. Alok Kapil
Lab copies and Lab files checking status

University prescribed Syllabus:

UNIT I
Introduction
Introducing Object-Oriented Approach, Relating to other paradigms {Functional, Data
Decomposition}Basic terms and ideas: Abstraction, Encapsulation, Inheritance,
Polymorphism, Review of C, Difference between C and C++ -cin, cout, delete operators.

UNIT II
Classes and Objects
Encapsulation, Information Hiding, Abstract Data Types, Object & Classes, Attributes,
Methods,C++ Class Declaration, State Identity and behaviour of an Object, Constructors and
Deconstructors, Instantiation of an Objects, Default parameter value, Object types, C++
garbage Collection, Dynamic Memory Allocation, Metaclass/Abstract classes

UNIT III
Inheritance and Polymorphism
Inheritance, Class hierarchy, Derivation – public, private, protected, Aggregation versus
Classification hierarchies, Polymorphism, Categorization of Polymorphism techniques,
Method Polymorphism, Polymorphism by parameter, Operator overloading, Parameteric
Polymorphism

UNIT IV
Generic Function
Template Function, Function Name Overloading, Overriding Inheritance Methods, Runtime
Polymorphism, Multiple Inheritance

UNIT V
Files and Exception Handling
Streams and Files, Namespaces, Exception Handling, Generic Classes

MODULE FORMAT:
This module will be taught via series of lectures; labs and programs. In addition to this,
students are required to be regular in the class and at least revise whatever taught in the class
regularly and discuss problems with friends and concerned faculty member.

REFERENTIAL BOOKS:
1. A.R.Venugopal, Rajkumar, T. Ravishanker “Mastering C++”, TMH, 1997.
2. R.Lafore, “Object Oriented Programming using C++”, Galgotia Publications, 2004
3. D.Parasons, “Object Oriented Programming using C++”, BPB Publication.
4. E.Balaguruswamy, “Object Oriented Programming using C++”, BPB Publication.
5. Introduction to OOPs & c++ -Yashwant Kanetkar.

Computer Laboratory and Practical Work OOPS


Prof. Alok Kapil
KEY DATES

Lab Copy Contents Submission Deadline


Checking
1st According to LO/LP completion 1st Week of October
2nd According to LO/LP completion 3rd Week of October
3rd According to LO/LP completion 1st Week of November
4th According to LO/LP completion 3rd Week of November
5th According to LO/LP completion 1st Week of December
6th According to LO/LP completion 3rd Week of December

Lab Test
1 Lab Copies Assessment Lab-to-Lab Basis
2 Lab Internal Examination Date will be informed

Computer Laboratory and Practical Work OOPS


Prof. Alok Kapil
Lecture Time Table

S. Topic Lectur Pedagogy Details Essential


No e No. Reading

Write a program using insertion and


1 extraction operator to read 1 Demo through Board+Mark Ashok
and write two numbers LCD/Projector er Kamathane,Bala
+Lab gurusamy,Venug
opal/D. Parsons

2 Write a program to print prime 2 Ashok


number series up to N Demo through Board+Mark Kamathane
LCD/Projector er
+Lab
3 Write a program to calculate 3 Ashok
GCD of a number entered by Demo through Board+Mark Kamathane
the user LCD/Projector er
+Lab
4 To swap the values of two 4 Ashok
variables using reference Demo through Board+Mark Kamathane
variable LCD/Projector er
+Lab
5 Write a c++ program to find 5 Board+Mark Ashok
the factorial of entered number Demo through er Kamathane,Bala
also print fibonacci series LCD/Projector+ gurusamy,Venug
uptown n number Lab opal/D. Parsons

6 Create a class sum that 6 Board+Mark Ashok


declares two private members Demo through er Kamathane,Bala
x and y and a public function LCD/Projector gurusamy,Venug
read and display that reads two +Lab opal/D. Parsons
objects and display the result

7 Using the above class add two 7


objects into third object Demo through Board+Mark Demo through
creating the function add LCD/Projector er LCD/Projector
object. +Lab +Lab
8 To find out the sum of two 8
objects using function inline Demo through Board+Mark Demo through
Computer Laboratory and Practical Work OOPS
Prof. Alok Kapil
function LCD/Projector er LCD/Projector
+Lab +Lab
9 To print the table of default 9
argument using default Demo through Board+Mark Demo through
function LCD/Projector er LCD/Projector
+Lab +Lab
10 To take input and display 10 Board+Mark Ashok
output to an matrix of size Demo through er Kamathane,Bala
m *n using class and object LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons
11 To overload the constructor 11 Board+Mark Ashok
function Demo through er Kamathane,Bala
LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons
12 Write a program to depict the 12 Board+Mark Ashok
concept of function Demo through er Kamathane,Bala
overloading LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons
13 To sum the hrs and minutes of 13 Board+Mark Ashok
two objects into third object by Demo through er Kamathane,Bala
passing object as an argument LCD/Projector gurusamy,Venug
to the function +Lab opal/D. Parsons
14 To sum the hrs and minutes of 14 Board+Mark Ashok
two objects into third object by Demo through er Kamathane,Bala
returning the object from the LCD/Projector gurusamy,Venug
function +Lab opal/D. Parsons
15 To sum the hrs and minutes of 15 Board+Mark Ashok
two objects into third object by Demo through er Kamathane,Bala
overloading + operator LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons

16 To take input and display 16 Board+Mark Ashok


output of student data by using Demo through er Kamathane,Bala
array of objects LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons

17 To find out how many objects 17 Board+Mark Ashok


are created at the end of the Demo through er Kamathane,Bala
program using static data LCD/Projector gurusamy,Venug
member +Lab opal/D. Parsons

18 To take input and display 18 Board+Mark Ashok


output using this pointer Demo through er Kamathane,Bala
LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons

19 19 Board+Mark Ashok
To copy the data values of one Demo through er Kamathane,Bala
object to the another by using LCD/Projector gurusamy,Venug

Computer Laboratory and Practical Work OOPS


Prof. Alok Kapil
copy constructor +Lab opal/D. Parsons

20 To add two distances 20 Board+Mark Ashok


measuring in feet and inches Demo through er Kamathane,Bala
using class and object LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons

21 To add two complex numbers 21 Board+Mark Ashok


using class and object Demo through er Kamathane,Bala
LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons
22 To overload the ‘=’ operator 22 Board+Mark Ashok
which copies the data of one Demo through er Kamathane,Bala
object to the another LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons
Balagurusamy
23 Write a program to find the 23 Board+Mark Ashok
maximum of private data of Demo through er Kamathane,Bala
two classes using friend LCD/Projector gurusamy,Venug
function +Lab opal/D. Parsons
Balagurusamy
24 Write a program to depict the 24 Board+Mark Ashok
concept of bridging of two Demo through er Kamathane,Bala
classes. Using the concept of LCD/Projector gurusamy,Venug
friend function +Lab opal/D. Parsons
25 Write a program to make one 25 Board+Mark Ashok
class as a friend of another Demo through er Kamathane,Bala
class LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons
26 Write a program to add two 26 Board+Mark Ashok
complex numbers using Demo through er Kamathane,Bala
operator overloading LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons
27 Write a program to access the 27 Board+Mark Ashok
private data member of the Demo through er Kamathane,Bala
class by the outside the LCD/Projector gurusamy,Venug
function +Lab opal/D. Parsons
28 Write a program to overload 28 Board+Mark Ashok
the unary pre and post Demo through er Kamathane,Bala
increment operator LCD/Projector gurusamy,Venug
+Lab opal/D. Parsons

Computer Laboratory and Practical Work OOPS


Prof. Alok Kapil

You might also like