1. Write a Program to check whether number is prime or not.
2. Write a Program to read number and to display the largest value between:
(a) Two number, (b)Three Numbers, (c) Four numbers by using switch-case statements.
3. Write a Program to find sum of first natural numbers: sum= 1+2+3+4+……. 100 by using(a) for loop, (b)while loop, (c) dowhile loop
4. Write a Program to find sum of the following series using function declaration: Sum= x-(x)3 /3!+(x)5 /5!-………..(x)n /n!
5. Write a Program to read the element of the given two matrixes & to perform the matrix multiplication.
6. Write a Program to exchange the contents of two variables by using (a)Call by value, (b)Call by reference.
7. Write a Program to perform the following arithmetic operations of a complex number using astructure: (a) Addition of two complex numbers, (b) Subtraction of two complex numbers, (c) Multiplication of two complex numbers, (d) Division of two complex numbers.
8. Write an object oriented program (OOP) using C++ to exchange the private data members of two different functions using friend functions.
9. Write an OOP using C++ to count how many times a particular member function of a class is called by: (a) A particular object, (b) Any objects
10.Write an OOP using C++ to define a constructor for a “Date” class that initializes the Date objects with initial values. In case initial values are not provided, it should initialize the objects with default values.
11.Write an OOP using C++ to overload = = operator to compare two strings.
12.Write an OOP using C++ to perform simple arithmetic operations of two complex numbers using operator overloading.
13.Write a C++ program to demonstrate how ambiguity is avoided using scope resolution operator in thefollowing inheritance: (a) Single inheritance, (b) Multiple inheritance
14.Write a C++ Program to perform the swapping of two data items of integer, floating point number and character type with the help of function overloading.
15.Write a C++ program to generate a Fibonacci series by overloading: (a) Prefix Operator, (b) Postfix Operator.
16.Write a C++ program to access the private data of a class by non-member function through friend function where the friend function is declared: (a) in the location of public category, (b) in the location of private category, (c) within the scope of a class definition itself, (d) defined with inline code subtraction.
17.Write a C++ program to demonstrate how a pure virtual function is defined, declared and invoked from the object of derived class through the pointer of the base class.
18.Write a C++ program to open a file and count the number of characters, number of vowels and number of newline characters present in the file.
19.Write a program to copy the contents of one text file to another and display both the files using a text Menu.
20.Create a database of 10 students. The database should contain the Name, Marks of 5 subjects, Aggregate Marks, Aggregate percentage and Division according to the following conditions: (a) Percentage above or equal to 60 – First division, (b) Percentage between 50 and less than 60 – Second division, (c) Percentage between 40 and less than 50 – Third division, (d) Percentage below 40 – Improvement required Display the above database of every student in a tabulated form. Implement the above program using Structures, Text-Menu and File I/O operations.
21.Write an OOP using a class template to read any five parameterized data type such as float and integer, and print the average.
22.Write a C++ program to Bubble Sort using template function.
23.Write a C++ program to read two numbers and find the division of these two numbers using exception handling.
24.Write a C++ program to create a function which take a parameter, if the value of parameter is > 0 then throw integer type, if parameter is = 0, then throw character type, if parameter is < 0 then throws float type exception but for all design use only one catch block.
25.Write a C++ program for invoking, for that generate & handle exception.
2. Write a Program to read number and to display the largest value between:
(a) Two number, (b)Three Numbers, (c) Four numbers by using switch-case statements.
3. Write a Program to find sum of first natural numbers: sum= 1+2+3+4+……. 100 by using(a) for loop, (b)while loop, (c) dowhile loop
4. Write a Program to find sum of the following series using function declaration: Sum= x-(x)3 /3!+(x)5 /5!-………..(x)n /n!
5. Write a Program to read the element of the given two matrixes & to perform the matrix multiplication.
6. Write a Program to exchange the contents of two variables by using (a)Call by value, (b)Call by reference.
7. Write a Program to perform the following arithmetic operations of a complex number using astructure: (a) Addition of two complex numbers, (b) Subtraction of two complex numbers, (c) Multiplication of two complex numbers, (d) Division of two complex numbers.
8. Write an object oriented program (OOP) using C++ to exchange the private data members of two different functions using friend functions.
9. Write an OOP using C++ to count how many times a particular member function of a class is called by: (a) A particular object, (b) Any objects
10.Write an OOP using C++ to define a constructor for a “Date” class that initializes the Date objects with initial values. In case initial values are not provided, it should initialize the objects with default values.
11.Write an OOP using C++ to overload = = operator to compare two strings.
12.Write an OOP using C++ to perform simple arithmetic operations of two complex numbers using operator overloading.
13.Write a C++ program to demonstrate how ambiguity is avoided using scope resolution operator in thefollowing inheritance: (a) Single inheritance, (b) Multiple inheritance
14.Write a C++ Program to perform the swapping of two data items of integer, floating point number and character type with the help of function overloading.
15.Write a C++ program to generate a Fibonacci series by overloading: (a) Prefix Operator, (b) Postfix Operator.
16.Write a C++ program to access the private data of a class by non-member function through friend function where the friend function is declared: (a) in the location of public category, (b) in the location of private category, (c) within the scope of a class definition itself, (d) defined with inline code subtraction.
17.Write a C++ program to demonstrate how a pure virtual function is defined, declared and invoked from the object of derived class through the pointer of the base class.
18.Write a C++ program to open a file and count the number of characters, number of vowels and number of newline characters present in the file.
19.Write a program to copy the contents of one text file to another and display both the files using a text Menu.
20.Create a database of 10 students. The database should contain the Name, Marks of 5 subjects, Aggregate Marks, Aggregate percentage and Division according to the following conditions: (a) Percentage above or equal to 60 – First division, (b) Percentage between 50 and less than 60 – Second division, (c) Percentage between 40 and less than 50 – Third division, (d) Percentage below 40 – Improvement required Display the above database of every student in a tabulated form. Implement the above program using Structures, Text-Menu and File I/O operations.
21.Write an OOP using a class template to read any five parameterized data type such as float and integer, and print the average.
22.Write a C++ program to Bubble Sort using template function.
23.Write a C++ program to read two numbers and find the division of these two numbers using exception handling.
24.Write a C++ program to create a function which take a parameter, if the value of parameter is > 0 then throw integer type, if parameter is = 0, then throw character type, if parameter is < 0 then throws float type exception but for all design use only one catch block.
25.Write a C++ program for invoking, for that generate & handle exception.
Plz can you post the source code of these experiments...
ReplyDelete