0% found this document useful (0 votes)
18 views4 pages

Index OOP

Uploaded by

vbbdbd71
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Index OOP

Uploaded by

vbbdbd71
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

SRTCT’S

SUMAN RAMESH TULSIANI TECHNICAL CAMPUS –


FACULTY OF ENGINEERING,
KHAMSHET
An ISO 9001:2015 Certified Institute
NAAC Accredited Institute

DEPARTMENT OF COMPUTER
Academic Year:2024-25
Semesters -I

LABORATORY MANUAL

SE Computer Engineering
Semester –I

Subject Code – 210243

Prepared By: Prof.Bhagyashree Patil


Contents

Sr. Problem Statement Date Page Faculty


No. No. Sign.

Object Oriented Programming (OOP)


Laboratory

1. Implement a class complex which represent the


Complex Number data type . Implement the
following
operations:
1. Constructor (include a default constructor which
creates the complex number 0+0i )
2. Overloaded operator + to add two polynomials
of degree 2.
3. Overloaded operator * to multiply two complex
number.
4. Overloaded << and >> to print and read
Complex Number.
2. Develop a program in C++ to create a database of
student’s information system containing the
following information: Name, Roll number, Class,
Division, Date of Birth, Blood group, Contact
address, Telephone number, Driving license no.
and other. Construct the database with
suitable member functions. Make use of
constructor, default constructor, copy constructor,
destructor, static member functions, friend class,
this pointer, inline code and dynamic
memory allocation operators-new and delete as
well as exception handling.

3. Imagine a publishing company which does


marketing for book and audio cassette versions.
Create a class publication that stores the title (a
string) and price (type float) of publications.
From this class derive two classes: book which
adds a page count (type int) and tape which
adds a playing time in minutes (type float).
Write a program that instantiates the book and tape
class, allows user to enter data and
displays the data members. If an exception is
caught, replace all the data member values with
zero values.
4. Write a C++ program that creates an output file,
writes information to it, closes the file, open
it again as an input file and read the information
from the file.

5. Write a function template for selection sort that


inputs, sorts and outputs an integer array and
a float array.

6. Write C++ program using STL for sorting and


searching user defined records such as personal
records (Name, DOB, Telephone number etc)
using vector container.

7. Write a program in C++ to use map associative


container. The keys will be the names of states
and the values will be the populations of the states.
When the program runs, the user is
prompted to type the name of a state. The program
then looks in the map, using the state
name as an index and returns the population of the
state.

You might also like