Posted in All Posts, Semester 3

Sem 3 – OOCP Unit 4 Programs

OOCP – Object Oriented Concepts & Programming

Unit 4 – Templates, Files

1. Write a program to create a function template for finding maximum value contained in an array.
Download | View Code

2. Write a program to create a class template for the ‘Array’ class.
Download | View Code

3. Create a template for the bubble sort function. Continue reading “Sem 3 – OOCP Unit 4 Programs”

Posted in All Posts, Semester 3

Sem 3 – DS Unit 4 Programs

DS – Data Structures

Unit 4 – Queue, Tree and Graph

1. Write a program to implement Simple Queue operations using Linked List.
• ENQUEUE
• DEQUEUE
• Traversal (display)
Download | View Code

2. Write a program to implement Circular Queue operations Using Linked List.
• ENQUEUE
• DEQUEUE
• Traversal (display)
Download | View Code

3. Write a program to implement following operations on Binary Search Tree using Linked List.
• Creation
• Insertion
• Traversal( In-order, Pre-order, Post-order) Continue reading “Sem 3 – DS Unit 4 Programs”

Posted in All Posts, Semester 3

Sem 3 – OOCP Unit 3 Programs

OOCP – Object Oriented Concepts & Programming

Unit 3 – Virtual Functions, Operator Overloading

1. Create a class vehicle which stores the vehicleno and chassisno as a member. Define another class for scooter, which inherits the data members of the class vehicle and has a data member for a storing wheels and company. Define another class for which inherits the data member of the class vehicle and has a data member for storing price and company. Display the data from derived class. Use virtual function. Continue reading “Sem 3 – OOCP Unit 3 Programs”

Posted in All Posts, Semester 3

Sem 3 – OOCP Unit 2 Programs

OOCP – Object Oriented Concepts & Programming

Unit 2 – Dynamic Memory Management, Constructor & Destructor, Inheritance

1. Using friend function find the maximum number from given two numbers from two different classes. Write all necessary functions and constructors for the program.
Download | View Code

2. Using a friend function, find the average of three numbers from three different classes. Write all necessary member functions and constructor for the classes.
Download | View Code
Continue reading “Sem 3 – OOCP Unit 2 Programs”

Posted in All Posts, Semester 3

Sem 3 – OOCP Unit 1 Programs

OOCP – Object Oriented Concepts & Programming

Unit 1 – Introduction to OOP, Classes & Objects

1. Write a program to calculate the area of circle, rectangle and square using function overloading.
Download | View Code

2. Write a program to demonstrate the use of default arguments in function overloading.
Download | View Code Continue reading “Sem 3 – OOCP Unit 1 Programs”