Professional Documents
Culture Documents
b. Write a Shell program to find the sum of odd and even numbers from a set of numbers.
c. Write a C program using dynamic memory allocation to subtract two matrices.
7. a. Write and execute the following UNIX commands
(i) Demonstrate pipe command
(ii) Demonstrate tee command
(iii) Use more than one command at a time (who and date)
(iv) Create a file called create.txt
(v) Move the file create.txt to move.txt
b. Write a Shell program to find the roots of a quadratic equation
c. Write a C program using dynamic memory allocation to transpose a given matrix
8. a. Write and execute the following UNIX commands
(i) Create a file
(ii) Print the specified number of lines of a file from start to end of the file.
(iii) Display the file content with line number
(iv) Update the file content with I/O redirection
(v) Rename the file
b. Write a Shell program to check the given integer is Armstrong number or not.
c. Write a C program using dynamic memory allocation to copy one matrix to another matrix