Professional Documents
Culture Documents
DSCP LAB
ASSIGNMENT 1
ASSIGNMENT 2
1. write a ‘C’ functions rev() that returns the reverse of the entered number
2. write a ‘C’ functions that inputs two numbers and print all prime numbers between those two
numbers
3. write a ‘C’ function to check the entered number is palindrome or not
4. write a ‘C’ function that converts decimal to binary numbers
5. write a ‘C’ program that find permutation and combinations using user defined functions
6. Write a program to add, subtract, multiply and divide two integers using user defined type
function with return type.
7. Define a function named fact() to calculate factorial of a number n .
8. To perform swapping of two numbers using call by value and call by reference.
ASSIGNMENT 3
1. Write a program to find the roots of nonlinear equation using bisection method.
2. Write a program to find the roots of nonlinear equation using false position method
3. Write a program to find the roots of nonlinear equation using Newton Raphson method
4. Write a program to find the roots of nonlinear equation using secant method
1. Write a program to solve a set of linear equations using Gauss Elimination Method.
2. Write a program to solve a set of linear equations using L-U factorization method
3. Write a program to sove a set of linear equations usinf Numerical Integration ( Simpson’s 3/8
Rule) method
ASSIGNMENT 5 [ARRAYS]
1. Write a program in C to demonstrate PUSH and POP operation in a Stack using arrays
2. Write a program in C to demonstrate INSERTION and DELETION operation in a Queue using
arrays
ASSIGNMENT 7[STRUCTURE]
1. Create a structure named company which has name, address, phone and no OfEmployee as
member variables. Read name of company, its address, phone and noOfEmployee.Finally display
these members’ value.
2. Define a structure “complex” to read two complex numbers and perform addition, subtraction of
these two complex numbers and display the result.