-
[Q1] → Write a program using user defined functions to find sum of 2- dimensional arrays (m*n Matrix) and store the sum of corresponding elements into third array and make a print function to print values of the matrix at the corresponding places (Not in a single row), get the transpose of the third matrix and call print function to display all 4matrices.
-
[Q2] → Write a program to multiply two (m ✕ n) matrices using dynamic memory allocation. Hints: 2 matrices are multipliable only if the columns of first matrix are equal to rows of second matrix. The resultant matrix will be of the size r1 *c2. Use three nested for loops and use the following expression to calculate the element of third matrix:
C[i][j]+=a[i][k]*b[k][j]
- [Q1] → Create a ADT point and using that data type find the distance between two points.
- [Q1] → Write a menu driven program to illustrate basic operation of stack using array:
- Push
- Pop
- Top
- Display all
- [Q2] → Write a program to evaluate a postfix expression.
- [Q3] → Write a program to convert Infix Expression into Postfix Expression.
- [Q1] → Write a menu driven program to illustrate basic operations of linear Queue:
- Enqueue
- Dequeue
- Display all values
- [Q2] → Write a menu driven program to illustrate basic operations of Circular queue:
- Using counter
- With one position vacant
- [Q1] → Write a program using an Array to perform the following tasks for contiguous list: (Use Switch
case for menu)
- Insert: Insert a value at the end / at any specified position.
- Delete: Delete a value from the specified position
- Traverse:Print all the elements from O to last position
- Searching:Searching a particular value in the array