C++ End Term Lab
C++ End Term Lab
Exception handling
write a program in c++ to implement divide by zero exception using exception handlers.
write a program in c++ to implement rethrowing and exception using excrption handler
unit 5
Templates
Create a fucntion template which perform sum of series for any data type like float,integer (function
template ex)
Create a class template defined class, array list which will perform array operation like insert array
elements, search array elements, transverse array elements
Create a array list template class whcih will be derived from derive class name sorted array which
will perform sorting of array elements
write a program in c++ to implement class template inheritance/template class inheritance or write
a program in c++ to implement inheritance between the
unit 4
File handling
Create a product class take details from product method store all product information in a test file
and display details of product to the user screen
Write a program to store the data of 5 students into a file and read the data of third and fourth
student from the file using file pointers.
Write a program to store the information of Vehicle in a text file: Vehicle Name, Vehicle model and
Vehicle price, use class object and method to handle file operations.
Write a program to store the data of 5 products into a file and read the data from the file in nth
location which is entered by user. Take Product details:(product name, product price and quantity)
Write a program to accept the data required for admission form in LPU and store this data into a
file.Read and write the data into a file using class objects.
Write a program to store the information of Person in a text file: Name, age and gender, use class
object and method to handle file operations.
Write a program in c++ to implement the concept of file pointers for read and write operation mode
or to implement random access approach or method