Jadavpur University Session 2021-2022, Odd Semester Computer Programming and Numerical Methods
Jadavpur University Session 2021-2022, Odd Semester Computer Programming and Numerical Methods
Jadavpur University Session 2021-2022, Odd Semester Computer Programming and Numerical Methods
Array
2. Write a program in C to read n number of values in an array. After that, count the total number
of duplicate elements in that array. Then copy the elements except the duplicate elements of
that array into another array and display this array in reverse order.
3. Write a menu-driven program for accepting values in two square matrices of 3x3 dimension and
generate their sum, difference and product.
4. Write a program to find the range of a set of integers entered by the user. Range is the difference
between the smallest and biggest number in the list.
5. Write a C program which accepts ten integers from the user and prints them in ascending order.
Use an array to store the integers.
6. Write a C program which accepts roll numbers of ten students and marks obtained by them in
five subjects and prints the names of the students who have obtained highest and second
highest marks subject wise.
8. Write a C program to replace a square matrix by its transpose without using a second matrix.
i. Take as input any four-digit number, using at least two different digits. (Leading zeros are
allowed.)
ii. Arrange the digits in descending and then in ascending order to get two four-digit
numbers, adding leading zeros if necessary.
iii. Subtract the smaller number from the bigger number. Let the difference be the new four
digit number.
Note:
A. The fixed point is achieved when in two consecutive steps the same number is obtained
B. In C the binary arithmetic operation m%n gives the remainder when m is divided by n
10. Write a program which takes some numbers and computes the standard deviation of them.