0% found this document useful (0 votes)
95 views1 page

Practical Lab List PDF

This document outlines 13 programming assignments for a 60 hour Object Oriented Programming lab using C++. The assignments include writing programs to calculate sums of digits, generate Fibonacci sequences, find prime numbers, factorials, GCDs, Towers of Hanoi, function templates, operator overloading, matrix operations using classes, different forms of inheritance, and runtime polymorphism using virtual functions.
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)
95 views1 page

Practical Lab List PDF

This document outlines 13 programming assignments for a 60 hour Object Oriented Programming lab using C++. The assignments include writing programs to calculate sums of digits, generate Fibonacci sequences, find prime numbers, factorials, GCDs, Towers of Hanoi, function templates, operator overloading, matrix operations using classes, different forms of inheritance, and runtime polymorphism using virtual functions.
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/ 1

PRACTICAL Total Time - 60 hours

OBJECT ORIENTED PROGRAMMING USING C++ LAB


1. Write a C++ program to find the sum of individual digits of a positive integer.
2. A Fibonacci sequence is defined as follows: the first and second terms in the sequence
are 0 and 1. Subsequent terms are found by adding the preceding two terms in the
sequence. Write a C++ program to generate the first n terms of the sequence.
3. Write a C++program to generate all the prime numbers between 1 and n , where n is a
value supplied by the user.
4. Write a C++program to find the factorial of a given integer.
5. Write a C++program to find the GCD of two given integers.
6. Write a C++ program that uses a recursive function for solving Towers of Hanoi
problem.
7. Write a C++program to implement call by value and call by reference parameters
passing
8. Write a C++ program to implement function templates
9. Write a program to implement Overloading.
10. Write a C++ program to implement the matrix ADT using a class. The operations
supported by this ADT are:
a. Reading a matrix.
b. Printing a matrix
c. Addition of matrices
d. Subtraction of matrices
e. Multiplication of matrices
11. Write C++programs that illustrate how the Single inheritance, Multiple inheritance
Multi level inheritance and Hierarchical inheritance forms of inheritance are
supported.
12. Write a C++program that illustrates the order of execution of constructors and
destructors when new class is derived from more than one base class
13. Write a C++ program that illustrates how run time polymorphism is achieved using
virtual functions

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy