The document is a list of programming tasks that cover a wide range of topics including basic arithmetic operations, control structures, object-oriented programming concepts, and inheritance. Each task requires writing a program to solve specific problems or demonstrate programming concepts. The tasks are numbered and include examples such as finding the greatest of three numbers, implementing a simple calculator, and demonstrating operator overloading.
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 ratings0% found this document useful (0 votes)
4 views
OOPS_Programs_Index
The document is a list of programming tasks that cover a wide range of topics including basic arithmetic operations, control structures, object-oriented programming concepts, and inheritance. Each task requires writing a program to solve specific problems or demonstrate programming concepts. The tasks are numbered and include examples such as finding the greatest of three numbers, implementing a simple calculator, and demonstrating operator overloading.
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/ 3
INDEX
S.No Program Questions Date Signature
1 Write a Program to find the greatest of three numbers using Ternary
Operator. 2 Write a Program to display 'Hello World'.
3 WAP to accept two numbers and display the sum.
4 Write a Program to read a floating-point number and print the
Integer and Float part separately. 5 Write a Program to calculate displacement using s=ut+1/2at^2 with user input values. 6 Write a Program to check whether a number is Even or Odd.
7 Write a Program to print the table of a number.
8 Write a Program to print the factorial of a number.
9 Write a Program to print a pattern
55555 4444 333 22 1 10 Write a Program to print an ascending number pattern. 1 12 123 1234 11 Write a Program to swap two numbers without using a third variable.
12 Write a Program to check if a string is a Palindrome.
13 Write a Program to calculate the sum and sum of squares of the first 15 Even Numbers. 14 Write a Program to check whether a number is Prime.
15 Write a Program to convert a Binary Number to a Decimal Number.
16 Write a Program to check if a number is Armstrong.
17 Write a Program to calculate Simple Interest using classes.
18 Write a Program to illustrate Static Member Data and Static Member
Functions. 19 Write a Program to make a Simple Calculator using classes.
20 Write a Menu-Driven Program for matrix operations using Object-
Oriented Programming. 21 Write a Program to show the concept of Scope Resolution and Variable Scope. 22 Write a Program to swap integer, float, and char values using function overloading. 23 Make an inline function to find the square of a number.
24 Write a Program to add two complex numbers by returning objects.
25 Write a Program illustrating object passing by reference and
pointers. 26 Write a Program to demonstrate Friend Functions and Friend Classes. 27 Write a Program to copy a complex number using a copy constructor.
28 Write a Program to multiply two complex numbers using
parameterized constructors. 29 Write a Program to illustrate the concept of Destructors.
30 Write a Program to illustrate Constructor Overloading.
31 Write a Program using constructors with default arguments.
32 Write a Program for Student and Staff inheritance details.
33 Write a program to implement the inheritance as shown in figure of
employee and emp_union which makes emp_info 34 Write a Program to implement matrix elements using dynamic memory allocation. 35 Write a Program to illustrate concept of constructors in derived class in which constructor is used in both base class and derived class
36 Write a Program to illustrate concept of constructors in derived class in
which multiple constructors are used in base class and single constructor is used in derived class
37 Write a Program to illustrate concept of constructors in derived class in
which constructor is used in base class and derived class without default constructor
38 Write a Program to illustrate concept of constructors in derived class in
which Explicit invocation is there in absence of default constructor
39 Write a Program to illustrate concept of constructors in derived class in
which constructors are used in a multiple inherited class with default invocation 40 Write a Program to illustrate concept of constructors in derived class in which constructors are used in a multiple inherited class with explicit invocation
41 Write a Program to illustrate concept of constructors in derived class in
which constructor is used in base class and derived class in multiple inheritance
42 Write a Program to illustrate concept of constructors in derived class in
which constructor is used in multilevel inheritance
43 Write a Program to illustrate inheritance and Examination Database
modeling. 44 Write a Program for book and sales details using multiple inheritance. 45 Write a program that show vehicle into sub part light motor and heavy motor 46 Illustrate Multipath Inheritance and Virtual Base Class.
47 Identify the type of inheritance and implement the following relation.
(person,student,exam,sports,result) 48 Write a program to overload unary operators.
49 Write a Program to overload Binary Operator using Friend Function
50 Write a program to concatenate two strings using operator
overloading 51 Write a program to show the concept of virtual functions.