Saturday 11 January 2014

Data Structure Using C/C++ Language examples list


  1. Write a program to calculate the area and circumference of a circle using the relation.    ( Area = πr2  ) and circumference = 2πr.
  2. Write a program to find the grade obtained by the students of a class.
  3. Write a program to find the largest and the smallest from the given three integers.
  4. Write a program to find sum, difference, product and quotient of any two integers as per the choice of the user.
  5. Write a program to print a chart showing the temperature in centigrade from 0° to 100° to with their corresponding values in Farenhiet, using while loop and using the relation  C / 5 = F-32 / 9
  6. Write a program to print the square and cube of n natural numbers using while loop.
  7. Write a program to check whether a given integer is even or odd or zero. The program should continue until a 0 is entered from the keyboard.
  8. Write a program to solve a quadratic equation.
  9. Write a program to prepare the pay bill for the employees of a company
  10. Write a program to check prime and unprime numbers.
  11. Write a program to print the Fibonacci series for any number of terms.
  12. Write a program to calculate the interest and total amount to be paid by entering the amount of loan and the number of years, either by simple interest method or by compound interest method as per the choice of the user.
  13. Write a program to calculate the LCM and HCF of any set of positive integers.
  14. Write a program to delete any element from any array.
  15. Write a program to copy the value of one string variable to another variable.
  16. Write a program to concatenate two strings.
  17. Write a program to check whether any given word is a palindrome or not.
  18. A company maintains the record of their employees as : Name, designation , Details of the pay like Gross pay, Provident Fund deductions, Professional tax and the Net pay. Keep the details of the pay within a separate structure
  19. Accept ten names and print the given names in opposite order using array of pointers.
  20. A program to search data from any array.
  21. A program of selection sort , Bubble sort, Quick sort
  22. To find the product of two matrices.

No comments:

Post a Comment