Professional Documents
Culture Documents
2012 13
GUIDED BY:
SUBMITTED BY:
Dr. Kapil Govil Mr. Rupal Gupta (TMU Roll No. Section: C )
-1-
No. of Assignment No I II III IV V VI VII VIII IX X Date of Issue Questions 13/08/2012 13/08/2012 13/08/2012 13/08/2012 13/08/2012 13/08/2012 13/08/2012 13/08/2012 13/08/2012 13/08/2012 13 18 2 1 8 8 2 4 3 5 Submission date
-2-
Contents
S. No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Question 8 Question 9 Question 10 Question 11 Question 12 Question 13 ASSIGNMENT II: ARRAY Question 14 Question 15 Question 16 Question 17 Question 18 Question 19 Question 20 Question 21 Question 22 Question 23 Question 24 Question 25 Question 26 Question 27 Question 28 Question 29 Question 30 Question 31 ASSIGNMENT III: STRUCTURE Question 32 Question 33 ASSIGNMENT IV: SEARCHING Question 34 ASSIGNMENT V: SORTING Question 35 Question 36 Program Number Page No ASSIGNMENT I: GENERAL Date Sign
-3-
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
Question 37 Question 38 Question 39 Question 40 Question 41 Question 42 ASSIGNMENT VI: STRING Question 43 Question 44 Question 45 Question 46 Question 47 Question 48 Question 49 Question 50 ASSIGNMENT VII: LINKED LIST Question 51 Question 52 ASSIGNMENT VIII: STACK Question 53 Question 54 Question 55 Question 56 ASSIGNMENT IX: QUEUE Question 57 Question 58 Question 59 ASSIGNMENT X: TREE Question 60 Question 61 Question 62 Question 63 Question 64
-4-
ASSIGNMENT I: GENERAL
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. WAP to compute the average of given real numbers using all loops. WAP to calculate the sum of First & Last digit of a Number. WAP that take the integer number from user and check it is palindrome or not. WAP to print the table from 1 to 10 using all loops. WAP to calculate the factorial of a number. WAP to calculate the factorial of a number using recursion. WAP to implement the Formula n C r. WAP to print the Pascal Triangle. WAP to find the number is prime or not. WAP to print the following sequence of numbers 0,1,1,2,3,5,8,13,21,34.. WAP to print the following sequence of numbers using recursion 0,1,1,2,3,5,8,13,21,34.. WAP that execute on basis of Command Line argument. WAP that allocates the Memory at Runtime to any structure pointer then take input & display the record.
-5-
31.
WAP which find whether a matrix, input by the user is Magic square or not.
33.
ASSIGNMENT V: SORTING
35. 36. 37. 38. 39. 40. 41. 42. WAP to sort an array of given numbers in descending order using selection sort method. WAP to sort an array of given numbers in ascending order using selection sort method. WAP to sort an array of given numbers in ascending order using bubble sort method. WAP to sort an array of given numbers in descending order using bubble sort method. WAP to sort an array of given numbers in ascending order using Insertion sort method. WAP to sort an array of given numbers in ascending order using Quick sort method. WAP to sort an array of given numbers in ascending order using Heap sort method. WAP to sort an array of given numbers in ascending order using Two-way Merge Sort method.
-6-
52.
ASSIGNMENT X: TREE
60. 61. 62. 63. 64. WAP to search the element in a Binary search tree. WAP for Tree Traversal in Pre-order. WAP for Tree Traversal in In-order. WAP for Tree Traversal in Post-order. WAP to insert and delete a node from the BST. (NOTE: Make a single program for all operations of a BST)
-7-