Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 5
INDEX
Date on Page Remark
Expt Title of the Experiment which Expt. No. No. Per. Sub.
1 Implement a class Complex which
represents the Complex Number data type. Implement the following 1. Constructor (including a default constructor which creates the complex number 0+0i). 2. Overload operator+ to add two complex numbers. 3. Overload operator* to multiply two complex numbers. 4. Overload operators << and >> to print and read Complex Nu Develop a program in C++ to create a 2 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. Imagine a publishing company which does 3 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. Write a C++ program that creates an 4 output file, writes information to it, closes the file, open it again as an input file and read the information from the file. Write a function template for selection sort 5 that inputs, sorts and outputs an integer array and 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.
Write a program in C++ to use map
7 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
1 Write C++ program to draw a concave
polygon and fill it with desired color using scan fill algorithm. Apply the concept of inheritance.
2 Write C++ program to implement Cohen
Southerland line clipping algorithm.
3 Write C++ program to draw the following
pattern. Use DDA line and Bresenham‘s circle drawing algorithm. Apply the concept of encapsulation.
4 Write C++ program to draw 2-D object and
perform following basic transformations, Scaling b) Translation c) Rotation. Apply the concept of operator overloading
b) Write C++ program to generate
5 Hilbert curve using concept of fractals. OR c) Write C++ program to generate fractal patterns by using Koch curves.
6 Write OpenGL program to draw Sun Rise and
Sunset.
7 Write a C++ program to draw man walking in
the rain with an umbrella. Apply the concept of polymorphism.