0% found this document useful (0 votes)
26 views2 pages

C++ Lab Record Index Sheet - Final

Uploaded by

yogeesh2006r
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)
26 views2 pages

C++ Lab Record Index Sheet - Final

Uploaded by

yogeesh2006r
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/ 2

DEPARTMENT OF COMPUTER SCIENCE AND BUSINESS SYSTEMS (CSBS)

Course Name: Object Oriented Programming (Integrated Lab) Course Code: P24CB306
Name: USN:
Semester: III Batch No:
Distribution of Marks for Evaluating Lab Set [A]
Record
& Program Program Viva
Total Marks
Sl No. Description Observation Execution Modification voce
(25)
(10) (5) (5) (5)

Write a C++ Program to implement basic C++


1.
Concepts
2. Write a C++ Program to create a Class and Object
Write a C++ Program to implement to demonstrate
3.
Constructor and Destructor
Write a C++ Program to implement to demonstrate
4.
Operator Overloading
Write a C++ Program to implement to implement
5.
Inheritance
Write a C++ Program to implement to demonstrate
6.
Virtual Function and Polymorphism
Write a C++ Program to implement to demonstrate
7.
Streams and Files in C++
Write a C++ Program to implement to demonstrate
8.
Templates
Write a C++ Program to implement to demonstrate
9.
Exception Handling
Average Marks [A]
(25 Marks)

CIE Date Write up (8) Execution (12)


Viva-Voce/ Average [B]
AAT’s (5) (25)

II

[A] [B] Total


(25) (25) (50)

Signature of Faculty In-Charge

Signature of Program Head


Program Topics Programs Staff
Number Covered Signature
1 Write a C++ program to build a small menu using a switch statement:
C++ Basics (a) Calculate factorial (b) Calculate square root
(c) Check whether it is even or odd (d) Arithmetic Operation
2 Class and Write a C++ program to create a class BankAccount with data
Objects members: account number, holder name, and balance. Provide
member functions to deposit an amount, withdraw an amount, and
display account details.
3 Constructor Write a C++ program to create a class HotelRoom with data members:
and room number and rate. Initialize these using a constructor and define
Destructor a destructor that prints a message when the object is destroyed.
4 Operator Write a C++ program to create a class MyString to store a string.
Overloading Overload the + operator to concatenate two MyString objects. Display
the concatenated string.
6 Inheritance Write a C++ program to design a class hierarchy with a base class
Vehicle and derived classes Car and Bike. Include common attributes
in Vehicle and add specific attributes such as fuel type and gear count
in the derived classes. Display details of all vehicles.
7 Virtual Write a C++ program to create a base class Employee with a virtual
Function and function calculatePay (). Derive classes FullTimeEmployee and
Polymorphism PartTimeEmployee from Employee to implement their own pay
calculation. Demonstrate runtime polymorphism.
8 Streams and Write a C++ program to count and display the number of lines, words,
Files and characters in a text file.
9 Streams and Write a C++ program to store and retrieve employee records from a
Files file using file streams. Accept employee details from the user, write
them to a file, then read and display them.
10 Templates Write a C++ program to create a template function to find the largest
among three numbers of any type.
11 Exception Write a C++ program to implement a BankAccount class with a
Handling withdrawal function that throws an exception if the balance is
insufficient. Catch and handle the exception.

Signature of Program Head

You might also like