Object Oriented Programming Using C++
Object Oriented Programming Using C++
Object Oriented Programming Using C++
Object orientation is a new approach to understand the complexities of the real world. In contrast
to the earlier approaches like procedural etc, object orientation helps to formulate the problems in a
better way giving high reliability, adaptability and extensibility to the applications. The students are
already familiar with this concept of programming in C which is the basic for C++. This course
offers the modern programming language C++ that shall help the students to implement the
various concept of object orientation practically. The students will be able to programme in the
object oriented technology with the usage of C++.
DETAILED CONTENTS
Review of constructs of C used in C++ : variables, types and type declarations, user
defined data types; increment and decrement operators, relational and logical operators; if
then else clause; conditional expressions, input and output statement, loops, switch case,
arrays, structure, unions, functions, pointers; preprocessor directives
6. Inheritance (6 hrs)
Definition of inheritance, protected data, private data, public data, inheriting constructors
and destructors, constructor for virtual base classes, constructors and destructors of
derived classes, and virtual functions, size of a derived class, order of invocation, types of
inheritance, single inheritance, hierarchical inheritance, multiple inheritance, hybrid
inheritance
Importance of virtual function, function call binding, virtual functions, implementing late
binding, need for virtual functions, abstract base classes and pure virtual functions, virtual
destructors
Components of a file, different operation of the file, communication in files, creation of file
streams, stream classes, header files, updating of file, opening and closing a file, file
pointers and their manipulations, functions manipulation of file pointers, detecting end-of-
file.
LIST OF PRACTICALS
1. Write a function using variables as arguments to swap the values of a pair of integers
2. An election is contested by five candidates. The candidates are numberd 1 to 5 & voting is
done by marking the candidate number on the ballot paper. Write a program to read the
ballot & count the votes cast for each candidate using an array, variable count. In case, a
number read is out side the range 1 to 5, the ballot should be considered as a ' spoilt
ballot' and the program should also count the number of spoilt ballot.
3. Write a program to read a matrix of size m*n from the keyboard and display the same on
the screen.
5. As the practical 4, using inline function. Test the function using the main program.
6. Define a class to represent a bank account including the following members:- Data
members
a) Name of the depositors
b) Account number
c) Type of account
4. Balance amount in the account
Member function
- To assign initial values
- To deposit an amount
84
7. Modify the class and the program of practical 6 for handling 10 customers.
8. Create 2 classes OM and DB which store the value of distance. DM store distances in
meters and cm and DB in feet and inches. Write a program that can read values for the
class objects and add 1 object OM with another object of DB. .
Use a friend function to carry out the addition operation the object that stores the results
may be a DM object or a DB object, depending upon the units in which the results are
require. The display should be in the format of feet and inches or meters and cms
depending on the object on display.
9. A book shop maintains the inventory of books that are being sold at the shop the list
includes details such as author, title and publisher and stock position. Whenever a
customer wants the book, the sales person inputs the title and author and the system
search the list and display whether it is available ornot. If it is not, a appropriate message
is displayed, if it is, then the system displays the book details and requests for the number
of copies require. If the requested are available, the total cost of the required copies is
displayed: otherwise the message" Required copies not in stock"is displayed. Design a
system using a class called books with suitable member functions and constructors. Use
new operator in constructor to allocate memory space require.
10. Define a class string that could work as a userdefined string type include constructors that
will enable us to create an .un-initialized string
String s1; :/ string with length 0
And also to initialize an object with string constant at the time of creation like
String s2("well done"); .
Include a function that adds two strings to make a third string.
11. Create a class float that contains 2 float data member. Over load all the 4 arithmetic
operators so that do operate on the objects of float.
12. Create a class MAT of size m*o. Define all possible matrix operation for MAT type objects
13. Define 2 classes POLAR and RECTANGLE to represent points in the POLAR and
RECTANGLE systems. Use conversion routines to convert from one system to the other.
14. Create a base class called shape use this class to store two double type values that could
be used to compute the area of fig. Derive the specific class called TRIANGLE and
RECTANGLE from the data shape. Add to base class, a member function get - data ( ) to
initialize base class data members and another member and another member function
display – area( ) to compute and display the area of the fig.. Make display – area ( ) as a
virtual function and redefine function in the derived classes to suit their requirements,
85
Using these 3 classes design a program that will accept dimension of RECTANGLE or
TRIANGLE interactivity and display the area.
Remember the 2 values given as input will be treated as length of 2 sides in the case of
rectangle and as base and height in the case of triangles and used as follows:
Area of rectangle = x*y
Area of triangle = 1/2 *x*y
RECOMMENDED BOOKS
1. C++: An introduction to programming by Jense Liberty Tim Keogh: BPB Publications, New
Delhi
3. Object Oriented Programming Using C++, Sanjeev Sofat, Cyber Tech. Publication, New
Delhi
5. C++ Primier by Stephen Parata , TMH Publishing Co. Ltd., New Delhi
6. C++ Primer by SB Lippman and J Lajoie; Addison Wesley (Singapore) Pvt. Ltd., New Delhi
9. Programming in C and C++ by SS Khandare; S Chand and Company Ltd. New Delhi
10. Object Oriented Programming using C++ by B Chandra, Narosa Publishing House Pvt
Ltd., Daryaganj, New Delhi 110002
11. Object Oriented Programming using C++ by R Rajaram , New age International (P) Ltd,
Publishers New Delhi
12. Programming in C++ by N Dale, C. Weems and Headington, Narosa Publishing House
Pvt Ltd., Daryaganj, New Delhi 110002
86
The knowledge of this subject will enable the students to understand the concepts of Linux and its
potential. The students will also get hand on experience of linux after undergoing this course.
DETAILED CONTENTS
Linux Operating System
1. Introduction (3 Hrs)
History of Linux and Unix, Linux Overview, Linux releases, open linux
3. Shell (6 Hrs)
The command line special characters and file arguments, standard input/output and
redirection, pipes, redirecting and piping with standard errors, shell scripts, jobs.
5. Vi Editor (3 Hrs)
Vi editing commands, advanced Vi editing commands, line editing commands, options in
Vi.
7. Introduction (6 Hrs)
Windows operating system - its features and capabilities; comparison with OS hardware
requirements for Windows 98, 2000 XP, Millennium,NT.
LIST OF PRACTICALS
Installing Linux
RECOMMENDED BOOKS
1. Linux – The Complete Reference by Richard Peterson, Tata McGraw Hill, New Delhi
2. Linux – Install and Configuration Black Book by Die Annleblanc and Issac Yates, IDG
Books India Private Ltd., Delhi
Database and database systems have become an essential component of everyday life in modern
society. This course will acquaint the students with the knowledge of fundamental concepts of
DBMS and its application in different areas, storage, manipulation and retrieval of data using query
languages.
DETAILED CONTENTS
1. Introduction (3 hrs)
3.1 Data Models Classification : File based or primitive models, traditional data
models, semantic data models.
5.2 Normalization
- Non-loss decomposition and functional dependencies
- First, Second and Third normal forms.
- Boyce/Codd normal form
LIST OF PRACTICALS
INSTRUCTIONAL STRATEGIES
Explanation of concepts using real time examples, diagrams etc. For practical sessions books
along with CDs or learning materials with specified activities are required. Various exercises and
small applications should be given along with theoretical explanation of concepts.
RECOMMENDED BOOKS
1) Fundamentals of Database Management Systems by Dr Renu Vig and Ekta Walia, - an ISTE,
Publication, New Delhi
2) Database Management Systems by Alexis Leon and Mathews Leon; Vikas Publishing House
Pvt. Ltd., New Delhi
7) Oracle 8, The complete reference by Koch and Loney, Tata McGraw Hill Publications New
Delhi
91
Multimedia is a new concept emerged in the recent times. Now this technology is being widely
used in web pages, motion pictures and interactive presentations, animation etc. Multimedia has
made a significant impact in training/education, business presentations, public information access
etc. This course intends to introduce and expose multimedia technology and various factors and
features of authoring software. It will also help in making the internet application richer in content
and presentation
DETAILED CONTENTS
1. Introduction (5 hrs)
Introduction to multimedia, hypertext, hypergraphics, animation, application in education
and training, science and technology, kiosks, business and games
5. Flash (9 hrs)
Exploring interface, using selection and pen tools, working with drawing and painting tools,
applying color, viewing and manipulating time line, time line/stage relationship, animating
(frame-by-frame, tweening), guiding layers, importing and editing sound and video clips in
flash, working with 3-D graphics
6. Director (9 hrs)
Exploring interface: score editor, cast editor, toolbars, library, palette, inspector, menu bar,
cast libraries, painting techniques, importing images, working with stage, sprites and score;
using text, using sound, using digital video, creating behaviour, using behaviour inspector,
basics of lingo
92
LIST OF PRACTICALS
INSTRUCTIONAL STRATEGY
As the subject is practice oriented, more stress should be given to students to do the work
practically. The features of software packages Photo-shop, Flash and Director are to be
demonstrated in class using LCD projector.
RECOMMENDED BOOKS
1. Multimedia An Introduction by Villam Casanova and Molina; Prentice Hall of India, New
Delhi
4. Director and Lingo Bible by John and Nyquist and Rober Martin, IDG Books India Pvt. Ltd.,
6. Photo-shop for Windows Bible by Deke Maclelland IDG Books India Pvt. Ltd., New Delhi
This course aims to develop knowledge and skills in the subject of organization of
components of a computer. The course will enable the students to be familiar with
computer hardware, standards, instruction set and assembly language programming. It
deals with the architecture of major components of a computer and functioning of these
different components.
Note: List of practicals has been given only as guide lines for students to learn, and not
for examination.
DETAILED CONTENTS
Introduction, system buses in PCs, expansion buses in PCs, ISI, EISE, VESA, PCI
Introduction, role of processor in a PC, working of processor with the help of a block
diagram. processors generations and processor families, inside a processor, processor
packaging, processor sockets. Processor Instruction Sets - RISC Technology, different
RISC processors available, difference between RISC and CISC processors.
Introduction to main memory. secondary memory, cache memory, physical vs. virtual
memory, associate memory, memory management unit, memory mapping, paging and
page replacement polices.
94
Note: List of practicals has been given only as guide lines for students to learn, and not
for examination.
LIST OF PRACTICALS
INSTRUCTIONAL STRATEGY
Since this subject is theoretical one, the practical aspects should be taught along with the theory
instruction for better understanding. . There is sufficient time in this subject students may be taken
to laboratory for demonstration.The students be given quiz tests and asked to give seminars on
small topics
RECOMMENDED BOOKS
1. Computer organization and Architecture William Stalling, Prentice Hall of India, New Delhi..
2. Computer System Architecture by M. Morris, Prentice Hall of India, New Delhi.
3. Computer Architecture and Organization by John P. Hayes, Mc Graw Hill Publishers.
4. Computer Fundamentals Architecture and Organization by B.Ram, New Age Publishing
House, New Delhi
5. Computer architecture by Rafiquzzaman, M ; Prentice Hall of India, New Delhi.
6. Fair head – 80836/80486 BPB Publication, New Delhi.
7. Hardware and Software of Personal Computers by Bose, SK; Willey Eastern Ltd; New
Delhi.
8. Structured Computer Organization by Tanenbaum Andrew S; Prentice Hall of India, New
Delhi.
9. Upgrading and Preparing PCs by Scott Muller, Techmedia Publications, New Delhi
10. Computer Organization and Architecture by Linda Labour, Narosa Publishing House Pvt.
Ltd. Darya Ganj, New Delhi.
11. A to Z of PC Hardware and Maintenance Subhadeep Choudhary Dhanpat Rai and Co.,
New Delhi
95
L T P
3 - 3
RATIONALE
A computer engineer should be able to interface and maintain key-board, printer, mouse monitor
etc along with the computer system. The course provides the necessary knowledge and skills
regarding working construction and interfacing aspects of peripherals. The students will get to
know how various peripherals communicate with central processing unit of the computer system
and pattern their respective operations. The student will be able to maintain keyboard, printer,
monitors and Power Supplies (CVTs and UPSs) along with computer system. This subject provide
the required background of computer installation, maintenance and testing of peripheral with micro
computers So a course on Computer Peripherals and Interfacing Devices is required to develop
such skills.
DETAILED CONETENTS
- The basic principle of working of video monitors, video display adopters, video
modes
- Video display EGA/VGA/SVGA/PCI adapters and their architecture
- Overview of Raster scan, vector graphic, their main difference and relative
advantages
- Concept of reduction and bandwidth of monitors refreshing of screen
Constructional features and working of hard disk drive, floppy disk drive, optical and DVD
disk drive. Logical structure of disk and its organization, boot record, and CD writer
Working principle of various input devices such as keyboards, Mouse, Scanner, Tablets,
touch screen, light pen, digitizers and joystick
5. Printers (4 hrs)
6. Principles of working and features of scanner, plotter, digitizer and Modem (4 Hrs)
96
The basic idea of BIOS and DOS services for diskette, serial port, key board and printers.
(a) Various types of digital buses. Analysis of recent progress in peripheral and buss
systems.
(b) Some aspects of cost performance analysis while designing the system
LIST OF PRACTICALS
3) To study the SMPS circuit and measure its various voltages. Connecting SMPS to mother-
board and other devices.
4) To study the operation and maintenance of CVT, HDD, FDD, CD ROM Drive, BMP, PASER
INSTRUCTIONAL STRATEGY
While teaching the subject the teacher may take the interfacing devices like disk drives, printers,
key-boards, scanners, plotters etc. physically and explain its working. Additional practical exercise
on maintenance and repair on peripheral devices will help the students to develop adequate skills.
97
RECOMMENDED BOOKS
1. B. Govinda Rajalu, IBM PC and Clones, “Hardware Trouble Shooting and Maintenance”,
Tata McGraw Hill 1991
2. Robert, S Lai: The waite group writing MS DOS Device, Drives, Addison, Wesley
Publishing Co. 2nd Ed. 1992.
3. SK Bose “Hardware and Software of Personal Computers” Wiley Eastern Limited, New
Delhi.
This is to be organized at a stretch for two to three days during second year. Lectures will be
delivered on the following broad topics. There will be no examination for this subject
1. Who is an entrepreneur?