The City College of New York Graduate Admission Booklet (Updated April 2019)Full description
hai friends here u can download all pl-sqlprograms with outputs
Full description
C++ Program ListFull description
Elitefts Programs ManualDescripción completa
dgxFull description
8086 ProgramsDescripción completa
UNIX SHELL PROGRAMMING 1. Unix Shell Shell program programss u using sing Expressio Expressions ns a. Write a Shell program to find the area and circumference of a circle .
2. Unix Shell Shell progr programs ams using using Condi Condition tional al Statements a. Write Write a Shell Shell program program to find find the largest among three numbers. b. Write Write a Shel Shelll progr program am to to check check the the given number is even or odd. c. Wr Writ itee a Shel Shelll progr program am to to chec check k whether given year is leap or not. no t. d. Write Write a She Shell ll program program to disp display lay student grades. e. Wr Writ itee a Shel Shelll progr program am to to find find the the roots of a quadratic equation.
f. Write Write a Shel Shelll pro progr gram am to execut executee various UNIX commands using case statements. 3. Unix Shell Shell progra programs ms using using loopi looping ng Statem Statements. ents. a. Write Write a Shell Shell program program to find find the factorial of a number using for loop. b. Write Write a Shel Shelll progr program am to to gener generate ate Fibonacci series. c. Write Write a Shell Shell program program to gene generat ratee prime numbers between 1 and 50. d. Write Write a Shel Shelll progr program am to to check check the the given integer is prime or not e. Write Write a Shell Shell program program to prin printt the the reverse of a number. f. Wr Writ itee a She Shell ll progr program am to to chec check k the the given string is palindrome or not. g. Write Write a She Shell ll program program to chec check k the the given integer is Armstrong number or not. h. Write Write a She Shell ll program program to find find the sum of square of individual digits of of a number. i. Wr Writ itee a She Shell ll progr program am to fin find d the the factorial of a number using for loop.
j.
Write a Shell Shell program to to find sum of individual digits of a number. k. Write Write a Shel Shelll progr program am to to find find the the sum sum of digits of a number until a single digit is obtained. l. Writ Writee a Shel Shelll prog progra ram m to find find the the largest digit of a number. m. Write Write a Shell Shell progra program m to find the smallest digit of a number. n. Write Write a Shel Shelll progr program am to to find find the the second largest digit from a number.
o. Write Write a Shell Shell progr program am to to find find the the sum sum of all numbers between 50 and 100, which are divisible by 3 and not divisible by 5. p. Write a Shell Shell program to count the number of vowels in a line of text. 4. Unix Unix shell shell progr programs ams usin using g arrays arrays.. a. Write Write a Shell Shell progr program am to to sort sort ‘n’ ‘n’ different numbers. b. Write Write a Shell Shell program program to find find the largest and smallest among ‘n’ different numbers
c. Write Write a Shell Shell progr program am to to find find the the sum sum of ‘n’ different numbers. d. Write Write a Shell Shell program program to find find the sum of odd and even from a set of numbers.
5. Unix Unix shell shell pro progr grams ams usin using g Funct Function ionss a. Write Write a Shell Shell program program to find find the largest number between two numbers using function.
b. Write a Shell Shell program to find the sum sum of two numbers using function programming. programming. c. Writ Writee a She Shell ll progr program am to to find find factorial of a number using recursive function.
#Ex.No - 1a : To find the area and circumference of a circle. #circle.sh echo -n "Enter Radius of the Circle : " read r area=$(echo "3.14*$r*$r"|bc -1 ) cf=$(echo "2*3.14*$r"|bc -l ) echo "=========================== "============================" =" echo "AREA OF CIRCLE : $area" echo "CIRCUMFERENCE : $cf" echo "=========================== "============================" =" OUTPUT:
[CPL_2_lab@localhost SH]$ sh circle.sh Enter Radius of the Circle : 7 ============================ AREA OF CIRCLE : 153.86 CIRCUMFERENCE : 43.96 ============================ [CPL_2_lab@localhost SH]$
#Ex.2a Greatest of three numbers #largest3.sh echo "Enter Three Numbers A,B,C" read a b c if [ $a -gt $b -a $a -gt $c ] then echo "$a is greater" elif [ $b -gt $c ] then echo "$b is greater" else echo "$c is greater" fi OUTPUT:
[CPL_2_lab@localhost SH]$ sh large3.sh Enter Three Numbers A,B,C 78 79 90 90 is greater [CPL_2_lab@localhost SH]$
#Ex.No.2b Check odd or even number #check_even.sh
echo -n "Enter the number : " read num if [ $(($num%2)) -eq 0 ] then echo "The number $num is even" else echo "The number $num is odd" fi OUTPUT:
[CPL_2_lab@localhost SH]$ sh check_even.sh Enter the number : 235 The number 235 is odd [CPL_2_lab@localhost SH]$ #Ex.No.2c: Check Leap year or not #check_leap.sh echo -n "Enter the year : " read year n=$(($year%4)) if [ $n -eq 0 ] then echo "$year is Leap year" else echo "$year is not leap year" fi OUTPUT:
[CPL_2_lab@localhost SH]$ sh check_leap.sh Enter the year : 1996 1996 is Leap year [CPL_2_lab@localhost SH]$
#Ex.No.2d Display Student grade #grade.sh echo "Enter Marks in five subjects" read m1 m2 m3 m4 m5 tot=$(($m1+$m2+$m3+$m4+$m5)) average=$(echo "$tot/5"|bc -l) avg=$average echo "$avg" if [ $m1 -lt 50 -o $m2 -lt 50 -o $m3 -lt 50 -o $m4 -lt 50 -o $m5 -lt 50 ] then grade="FAIL"
elif [ $(echo "$avg >= 75"|bc) -eq 1 ] then grade="FIRST CLASS WITH DISTINCTION" elif [ $(echo "$avg >= 60"|bc) -eq 1 ] then grade="FIRST CLASS" elif [ $(echo "$avg >= 50"|bc) -eq 1 ] then grade="SEOCND CLASS" else grade="THIRD CLASS" fi echo "=========================" echo "TOTAL MARKS : $tot" echo "AVERAGE MARKS : $avg" echo "GRADE : $grade" echo "=========================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh grade.sh Enter Marks in five subjects 95 90 75 68 82 82.00 ================================== TOTAL MARKS : 410 AVERAGE MARKS : 82.00 GRADE : FIRST CLASS WITH DISTINCTION ================================== [CPL_2_lab@localhost SH]$
#Ex.No.2e.Roots of Quadratic Equation #quad_roots.sh echo "Enter the Co-ordinates A, B, C : " read a b c d=`expr $b \* $b - 4 \* $a \* $c` echo "================================== " if [ $d -lt 0 ] then echo "Roots are Imaginary..!" elif [ $d -eq 0 ] then echo "Roots are equal..!" r1=`expr -1 \* $b / 2 \* $a ` r2=$r1 echo "The Roots are R1 = $r1 R2 = $r2"
else echo "Roots are Different..!" r=$(echo "scale=2;sqrt($d)" | bc) x=$(echo "-1*$b"|bc) r1=$(echo "scale=2;($x+$r)/(2*$a)"|bc) r2=$(echo "scale=2;($x-$r)/(2*$a)"|bc) echo "The Roots are R1 = $r1 R2 = $r2" fi echo "================================== " OUTPUT: [CPL_2_lab@localhost SH]$ sh quad_roots.sh Enter the Co-ordinates A, B, C : 1 -3 -4 ================================== Roots are Different..! The Roots are R1 = 4.00 R2 = -1.00 ================================== [CPL_2_lab@localhost SH]$
#Ex.No:3a.Find Factorial using for loop #fact.sh echo -n "Enter the Number : " read n f=1 for((i=1;i<=$n;i++)) do f=$(($f*$i)) done echo "===========================" echo "The factorial $n! = $f" echo "===========================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh fact.sh Enter the Number : 7 =========================== The factorial 7! = 5040 =========================== [CPL_2_lab@localhost SH]$
#Ex.No.3b. Generate Fibonacci series #fibo.sh echo -n "Enter the Limit : " read n a=0
b=1 echo "FIBONACCI SERIES" echo "================================== " while [ $a -le $n ] do echo -n " $a" c=$(($a+$b)) a=$b b=$c #c=$(($a+$b)) done echo "" echo "================================== " OUTPUT: [CPL_2_lab@localhost SH]$ sh fibo.sh Enter the Limit : 8 FIBONACCI SERIES ================================== 0112358 ================================== [CPL_2_lab@localhost SH]$
#Ex.No.3c Check given number is Prime or not #check_prime.sh echo -n "Enter the number : " read num for((i=2;i<$num;i++)) do if [ $(($num%$i)) -eq 0 ] then break; fi done if [ $i -eq $num -o $num -eq 1 ] then echo "The number $num is prime" else echo "The number $num is not prime" fi OUTPUT:
[CPL_2_lab@localhost SH]$ sh check_prime.sh Enter the number : 71 The number 71 is prime [CPL_2_lab@localhost SH]$
#Ex.No.3d Generate Prime numbers between 1-50 #check_prime.sh echo "PRIME NUMBERS BETWEEN 1 and 50 ARE : " echo "================================== =" for((n=1;n<=50;n++)) do for((i=2;i<$n;i++)) do if [ $(($n%$i)) -eq -eq 0 ] then break; fi done if [ $i -eq $n -o $n -eq 1 ] then echo -n " $n " fi done echo "" echo "================================== =" OUTPUT:
[CPL_2_lab@localhost SH]$ sh gen_primes.sh PRIME NUMBERS BETWEEN 1 and 50 ARE : ================================== 1 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 ================================== [CPL_2_lab@localhost SH]$
#Ex.No.3e.Reverse the Given Number #rev_num.sh echo -n "Enter the number : " read num n=$num
rev=0 while [ $n -gt 0 ] do a=`expr $n % 10` rev=`expr $(($rev*10)) + $a` n=`expr $n / 10` done echo "=================================" echo "The Reverse of $num is $rev" echo "=================================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh rev_num.sh Enter the number : 980022 ================================ The Reverse of 980022 is 220089 ================================ [CPL_2_lab@localhost SH]$
#Ex.No.3f.Check whether given number is Palindrome or not #palin_num.sh echo -n "Enter the number : " read num n=$num rev=0 while [ $n -gt 0 ] do a=`expr $n % 10` rev=`expr $rev \* 10 + $a` n=`expr $n / 10` done
if [ $num -eq $rev ] then echo "The number $num is Palindrome" else echo "The number $num is not Palindrome" fi OUTPUT:
[CPL_2_lab@localhost SH]$ sh palin_num.sh Enter the number : 22155122 The number 22155122 is Palindrome [CPL_2_lab@localhost SH]$
#Ex.No.3g Check Armstrong number or not #check_arm.sh echo -n "Enter the number : " read num n=$num arm=0 while [ $n -gt 0 ] do a=`expr $n % 10` arm=`expr $arm + $a \* $a \* $a` n=`expr $n / 10` done if [ $num -eq $arm ] then echo "The number $num is Armstrong" else echo "The number $num is not Armstrong" fi OUTPUT: [CPL_2_lab@localhost [CPL_2_lab@localhost SH]$ sh check_arm.sh Enter the number : 153 The number 153 is Armstrong [CPL_2_lab@localhost [CPL_2_lab@localhost SH]$
#Ex.No.3h Find sum of square of individual digits # sum_digit_square.sh echo -n "Enter the number : " read num n=$num sum=0 while [ $n -gt 0 ] do a=`expr $n % 10` sum=`expr $sum + $a \* $a ` n=`expr $n / 10` done echo "Sum of Squares of Digits is : $sum" OUTPUT:
[CPL_2_lab@localhost SH]$ sh sum_digit_square.sh Enter the number : 154 Sum of Squares of Digits is : 42 [CPL_2_lab@localhost SH]$
#Ex.No.3i Sum of Individual Digits #sum_digits.sh
echo "ENTER THE NUMBER :" read NUM sum=0 while [ $NUM -gt 0 ] do a=`expr $NUM % 10 ` sum=`expr $sum + $a ` NUM=`expr $NUM / 10 ` done echo "--------------------"------------------------------------------------------------------" ---" echo " SUM OF DIGITS : $sum " echo "===========================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh sum_digits.sh ENTER THE NUMBER : 5923 ---------------------------------------------SUM OF DIGITS DIGITS : 19 =========================== [CPL_2_lab@localhost SH]$ #Ex.No.3j Sum of Individual Digits to Single digit #single_digit_sum.sh echo "ENTER THE NUMBER :" read N sum=$N while [ $sum -gt 9 ] do NUM=$sum sum=0 while [ $NUM -gt 0 ] do a=`expr $NUM % 10 ` sum=`expr $sum + $a ` NUM=`expr $NUM / 10 ` done done echo "--------------------"---------------------------" ------" echo " SUM OF DIGITS : $sum " echo "===========================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh single_digit_sum.sh ENTER THE NUMBER : 97364 ---------------------------------------------SUM OF OF DIGITS DIGITS : 2 =========================== [CPL_2_lab@localhost SH]$ #Ex.No.3k Find largest digit from a number #large_digit.sh echo "ENTER THE NUMBER :" read NUM max=0 while [ $NUM -gt 0 ] do a=`expr $NUM % 10 ` if [ $a -gt $max ] then max=$a fi NUM=`expr $NUM / 10 ` done echo "--------------------"------------------------------------------------------------------" ---" echo " LARGEST LARGEST DIGIT IS : $max " echo "===========================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh large_digit.sh ENTER THE NUMBER : 239284 ---------------------------------------------LARGEST DIGIT DIGIT IS IS : 9 =========================== [CPL_2_lab@localhost SH]$ #Ex.No.3l Find smallest digit from a number #small_digit.sh echo "ENTER THE NUMBER :" read NUM min=10 while [ $NUM -gt 0 ] do a=`expr $NUM % 10 ` if [ $a -lt $min ] then min=$a fi NUM=`expr $NUM / 10 `
[CPL_2_lab@localhost SH]$ sh small_digit.sh ENTER THE NUMBER : 986435 ---------------------------------------------SMALLEST DIGIT IS : 3 =========================== [CPL_2_lab@localhost SH]$ #Ex.No.3m Find second largest digit from a number #max2_digit.sh echo "ENTER THE NUMBER :" read NUM max=0 max2=0 while [ $NUM -gt 0 ] do a=`expr $NUM % 10 ` if [ $a -gt $max ] then max2=$max max=$a elif [ $a -gt $max2 ] then max2=$a fi NUM=`expr $NUM / 10 ` done echo "--------------------------------------------------------" echo " LARGEST DIGIT IS : $max " echo " SECOND LARGEST DIGIT IS : $max2" echo "=================================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh max2_digit.sh ENTER THE NUMBER : 37295 -------------------------------------------------------LARGEST DIGIT IS : 9 SECOND LARGEST DIGIT IS : 7 ================================= [CPL_2_lab@localhost SH]$ #Ex.No.3n. Sum of number between 50-100 divisible by 3 not by 5 #sum_50_100.sh sum=0 echo "NUMBERS DIVISIBLE BY 3 and NOT BY 5 ARE" echo "================================== =" for((i=50;i<=100;i++)) do if [ $(($i%3)) -eq 0 -a $(($i%5)) -ne 0 ] then echo -n " $i " sum=$(($sum+$i)) fi done echo "" echo "================================== =" echo "SUM OF NUMBERS IS : $sum" echo "================================== =" OUTPUT: [CPL_2_lab@localhost SH]$ sh sum_50_100.sh NUMBERS DIVISIBLE BY 3 and NOT BY 5 ARE ==================================== 51 54 57 63 66 69 72 78 81 84 87 93 96 99 ==================================== SUM OF NUMBERS IS : 1050 ==================================== [CPL_2_lab@localhost SH]$
#Ex.No.3o Check given string is Palindrome or not
#palin_str.sh echo -n "Enter String : " read str len=${#str} i=1 j=$len while [ $i -lt $j ] do c1=`expr substr $str $i 1` c2=`expr substr $str $j 1` if [ $c1 != $c2 ] then break fi i=`expr $i + 1` j=`expr $j - 1` done echo "================================== ="
if [ $i -lt $j ] then echo "The string $str is NOT Palindrome" else echo "The string $str is Palindrome" fi echo "================================== =" OUTPUT: [CPL_2_lab@localhost SH]$ sh palin_str.sh Enter String : ATOYOTA ==================================== The string ATOYOTA is Palindrome ==================================== [CPL_2_lab@localhost SH]$
#Ex.No.3p Count No of Vowels in a text #vowels.sh echo -n "Enter String : " read str len=${#str} i=1 count=0 vow=aeiouiAEIOU while [ $i -le $len ] do
ch=`expr substr $str $i 1` for((j=1;$j<=10;j++)) do c2=`expr substr $vow $j 1` if [ $ch == $c2 ] then count=$(($count+1)) break fi done i=`expr $i + 1` done echo "No of Vowels is : $count" OUTPUT: [CPL_2_lab@localhost SH]$ sh vowels.sh Enter String : entertainment No of Vowels is : 5 [CPL_2_lab@localhost SH]$ #Ex.No.4a. Sort N numbers #sort_n.sh echo "ENTER NO OF ELEMENTS" read N echo "ENTER NUMBERS TO BE SORTED" for i in $(seq 1 1 $N) do read a[i] done for ((i=1; i<=$N; i++ )) do for((j=$i; j<=$N; j++ )) do if [ ${a[i]} -gt ${a[j]} ] then t=${a[i]} a[i]=${a[j]} a[j]=$t fi done done echo "======================" echo "SORTED LIST : ${a[*]} " echo "======================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh sort_n.sh ENTER NO OF ELEMENTS 5 ENTER NUMBERS TO BE SORTED 98 -3 45 78 23 ========================= SORTED LIST : -3 23 45 78 98 ========================= [CPL_2_lab@localhost SH]$
#Ex.No.4b. Find largest among N numbers #max_min_n.sh echo "ENTER NO OF ELEMENTS" read N echo "ENTER THE NUMBERS : " for i in $(seq 1 1 $N) do read a[i] done max=${a[1]} min=$max for ((i=2; i<=$N; i++ )) do if [ ${a[$i]} -gt $max ] then max=${a[$i]} fi if [ ${a[$i]} -lt $min ] then min=${a[$i]} fi done echo "========================" echo " LARGEST LARGEST NUMBER : $max " echo " SMALLEST NUMBER : $min" echo "========================" OUTPUT:
[CPL_2_lab@localhost SH]$ sh max_min_n.sh ENTER NO OF ELEMENTS 5 ENTER THE NUMBERS : 34 67 -34 56 37 ======================== LARGEST NUMBER : 67 SMALLEST NUMBER : -34 ======================== [CPL_2_lab@localhost SH]$ #Ex.No.4c. Find Sum of N numbers #sum_n.sh echo "ENTER NO OF ELEMENTS" read N echo "ENTER THE NUMBERS : " for i in $(seq 1 1 $N) do read a[i] done sum=0 for ((i=1; i<=$N; i++ )) do sum=$(($sum+${a[$i]})) done
echo "========================" echo " SUM IS : $sum " echo "========================" OUTPUT: [CPL_2_lab@localhost SH]$ sh sum_n.sh ENTER NO OF ELEMENTS 5 ENTER THE NUMBERS : 98 45 34 56 67 ======================== SUM IS : 300 ======================== [CPL_2_lab@localhost SH]$
#Ex.No.4d. Find Sum of ODD and EVEN numbers #sum_odd_even.sh
echo "ENTER NO OF ELEMENTS" read N echo "ENTER THE NUMBERS : " for i in $(seq 1 1 $N) do read a[i] done sum_odd=0 sum_even=0 for ((i=1; i<=$N; i++ )) do if [ $((${a[$i]}%2)) -eq 0 ] then sum_even=$(($sum_even+${a[$i]})) else sum_odd=$(($sum_odd+${a[$i]})) fi done echo "=================================" echo " SUM OF ODD NUMBERS : $sum_odd " echo " SUM OF EVEN NUMBERS : $sum_even " echo "=================================" OUTPUT: [CPL_2_lab@localhost SH]$ sh sum_odd_even.sh ENTER NO OF ELEMENTS 4 ENTER THE NUMBERS: 12 45 52 56 ================================= SUM OF ODD NUMBERS : 45 SUM OF EVEN NUMBERS NUMBERS : 120 ================================= [CPL_2_lab@localhost SH]$ #Ex.No.5a.Largest of two using Function #largest_2.sh
max() { if [ $1 -gt $2 ] then return $1 else return $2 fi } echo "Enter two numbers : " read a b max $a $b echo "MAXIMUM AMONG ( $a and $b ) IS : $?" OUTPUT: [CPL_2_lab@localhost SH]$ sh largest_2.sh Enter two numbers : 56 23 MAXIMUM AMONG ( 56 and 23 ) IS : 56 [CPL_2_lab@localhost SH]$
#Ex.No.5b.Sum of two using Function #sum_2_func.sh sum() { return $(($1+$2)) }
echo "Enter two numbers : " read a b sum $a $b echo "SUM ( $a + $b ) IS : $?" OUTPUT: [CPL_2_lab@localhost SH]$ sh sum_2_func.sh Enter two numbers : 56 34 SUM ( 56 + 34 ) IS : 90 [CPL_2_lab@localhost SH]$
#Ex.No.5c.Find Factorial using Recursive Function #fact_func.sh fact() { if [ $1 -gt 1 ]
then i=`expr $1 - 1 ` j=`fact $i ` x=`expr $1 \* $j ` echo $x else echo 1 fi } echo "ENTER THE NUMBER : " read num fact $num OUTPUT: [CPL_2_lab@localhost SH]$ sh fact_func.sh ENTER THE NUMBER : 5 120 [CPL_2_lab@localhost SH]$
UNIX ‘C’ PROGRAMMING 1. Unix Unix ‘C’ ‘C’ progra programs ms using using FILE FILES. S. a. Write Write a C progr program am to to perfo perform rm file file copy operation. b. Write a C program to create two files and perform merge operation on it c. Writ Writee a C progr program am wit with h an app append end operation on an existing file. d. Writ Writee a C prog progrram to crea creatte a file, ile, whic which h cont contai ains ns regi regist ster er numb number er,, nam name, age etc. and display the contents of the file. e. Writ Writee a C prog progrram to crea creatte a file, ile, which contains two numbers followed by an operator in a line. Read a line of the file, while reading it; with respect to the operator perform the operation against the numbers. 2. Unix Unix ‘C’ progr program amss using using FUNCTI FUNCTION ONS. S. a. Write Write a C progr program am to to find find the the sum sum of of digits of a number using function. b. Write a C program to check whether the given number and its reverse are same using function. c. Write Write a C progr program am to to find find the the sum sum of of square of individual digits of a number using function. d. Write Write a C progr program am to to find find the the sum sum of of cube of individual digits of a number using function. e. Write Write a C progr program am to to find find the the larg largest est digit from a number using function. f. Writ Writee a C progr program am to to find find the the sec secon ond d largest digit from a number using function. g. Write Write a C prog program ram to find find the the small smallest est digit from a number using function. h. Write Write a C progr program am to to find find the the sum sum of of ‘n’ numbers using function. 3. Unix ‘C’ program programss using using array arrayss with with Dynami Dynamicc Memory Allocation. a. Writ Writee a C progr program am usi using ng dyna dynami micc memory allocation to sort ‘n’ names in ascending order. b. Write a C program using dynamic memory allocation to sort ‘n’ names in descending order. c. Write a C pro program using dynamic memory alloca ocation to find the
minimum and maximum of a set of numbers. d. Write Write a C progra program m usin using g dynam dynamic ic memory allocation to perform linear search operation. e. Writ Writee a C progr program am usi using ng dynam dynamic ic memory allocation to perform binary search operation. f. Writ Writee a C progr program am usin using g point pointer erss to allo alloca cate te a memo memory ry for for the the stri string ng “Uni “Unive verrsity sity”” and and real realllocat ocatee the memory for the string to “University Examinations”. 4. Unix ‘C’ programs using Matrix with Dynamic Memory Allocation. a. Write a C progra program m using using dyn dynami amicc memory allocation to add two matrices. b. Write a C program using dynamic memo memory ry allo alloca cati tion on to subt subtra ract ct two two matrices. c. Writ Writee a C progr program am usi using ng dynam dynamic ic memory allocation to multiply of two matrices d. Write Write a C progra program m usin using g dynam dynamic ic memory allocation to perform transpose of a given matrix. e. Writ Writee a C progr program am usi using ng dynam dynamic ic memory allocation to copy one matrix to another matrix f. Writ Writee a C pro progr gram am usi using ng dyn dynam amic ic memory allocation to find the sum of elements of a matrix. 5. Unix Unix ‘C’ ‘C’ progr programs ams using using Struc Structure turess with with Dynamic Memory Allocation. a. Writ Writee a C progr program am usi using ng dynam dynamic ic memory allocation to develop a mark sheet of 5 students. b. Write a C program using dynamic memory allocation to develop salary details of 5 employees 6. Unix Unix ‘C’ ‘C’ progr programs ams using using point pointers ers.. a. Write Write a C progr program am usin using g point pointers ers to combine two array elements without duplicate b. Write a C program using pointers to copy the content of one array to another c. Write Write a C progr program am usin using g point pointers ers to swap two numbers.