c++ questions.doc

4
C++ PROGRAMS 1.Write a program to find the addition and its average value. 2.Write a program to find the velocity. 3.Write a program to find the simple interest. 4.Write a program to check whether the given number is odd or even. 5.Write a program to find the biggest value among three numbers. 6.Write a program to find the biggest value among three numbers using if statement. 7.Write a program to find the smallest number among three numbers. 8.Write a program to find the quotient and remainder value. 9.Write a program to find the multiplication table up to 15. 10.Write a program to find whether the given number is greater than 100 or less than 100. 11.Write a program to convert the temperature. 12.Write a program to find the arithmetical operations. 13.Write a program to find the roots of quadratic equations. 14.Write a program to reverse the given number. 15.Write a program to check whether the given age and is grade. 16.Write a program to find the commission value for total sales. 17.Write a program to find the days, years and the week. 18.Write a program to compute the fibonacci series. 19.Write a program to find the successor value for the given value. 20.Write a program to find the simple interest using for statement. 21.Write a Program to enter an integer and print its total value based on the formula 'x - 1/3!x^3 + 1/5!x^5 - 1/7!x^7 + 1/9!x^9'. 22.Write a program to find the net salary. 23.Write a program to find the ascii value. 24.Write a switch case program. 25.Write a program to sort the given number in ascending order.

Upload: vikas-ps

Post on 18-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

C++ PROGRAMS

1.Write a program to find the addition and its average value.

2.Write a program to find the velocity.

3.Write a program to find the simple interest.

4.Write a program to check whether the given number is odd or even.

5.Write a program to find the biggest value among three numbers.

6.Write a program to find the biggest value among three numbers using if statement.

7.Write a program to find the smallest number among three numbers.

8.Write a program to find the quotient and remainder value.

9.Write a program to find the multiplication table up to 15.

10.Write a program to find whether the given number is greater than 100 or less than 100.

11.Write a program to convert the temperature.

12.Write a program to find the arithmetical operations.

13.Write a program to find the roots of quadratic equations.

14.Write a program to reverse the given number.

15.Write a program to check whether the given age and is grade.

16.Write a program to find the commission value for total sales.

17.Write a program to find the days, years and the week.

18.Write a program to compute the fibonacci series.

19.Write a program to find the successor value for the given value.

20.Write a program to find the simple interest using for statement.

21.Write a Program to enter an integer and print its total value based on the formula

'x - 1/3!x^3 + 1/5!x^5 - 1/7!x^7 + 1/9!x^9'.

22.Write a program to find the net salary.

23.Write a program to find the ascii value.

24.Write a switch case program.

25.Write a program to sort the given number in ascending order.

26.Write a program to find the addition of two matrices.

27.Write a program to identify if an input is a symbol, digit or character.

28.Write a Program to enter a letter and output the next 2 letters.

29.Write a program to convert the lower case into upper case character.

30.Write a program to find the length of the given string.

31.Write a program to find the number of vowels and consonants in a statement.

32.Write a program to find the cube value using function.

C++ OBJECT ORIENTENT PROGRAMMING (OOPS)

1. Write a heap sort program to sort in ascending order.

2. Write a program to create Binary Tree.

3. Write a heap sort program.

4. Write a program to do a insertion sort.

5. Write a program to do Merge Sort.

6. Write a program to find the node count.

7. Write a program to find the Node Pointer.

8. Write a program to do selection sort.

9. Write a program to find the Node Pointer to sort ascending and descending order

PROGRAMMES USING CONSTRACTOR AND DESTRACTOR

1. Write a c++ program to find the absolute value.

2. Write a c++ program to find the area of a cube values.

3. Write a c++ program to find the average age of a given group.

4. Write a c++ program to find the average of given value using array.

5. Write a c++ program to print a statement using function.

6. Write a program to print the age of a person by using object function.

7. Write a program to cube the given value and shows how constructors and destructor are used.

8. Write a program to print the age using constructors.

9. Write a program to find the length of a cube.

10. Write a program to multiple the value using return statements.

11. Write a program to finds the nth Fibonacci number using constructor and destructor.

12. Write a program using Multiple Inheritance.

13. Write a program to find the length of the string.

14. Write a C++ program Using Multidimensional Arrays.

15. Write a c++ program for adding two numbers using function.

16. Write a C++ Program for calculating the Size of an Array.

17. Write a c++ program to swap the number using pass by values.

18. Write a program to swap the values using function.

19. Write a C++ program to 1. change value 2. square 3.cube and 4.swapping the values using function pointers.

20. Write a simple program using virtual inheritance .