i need it in 30 min please
i need it in 30 min please
7:18 Ims.emu.edu.tr on) Write a program using the amays to eliminate the duplicateme Generate 30 random numbers between 0 and 150 using and function Insert themes to the army with asie 50. As cach number is greated, printirely if it's licemerlay generated Preside for the worst case in which all numbers en different Hint: Calculate the frequency of each numbers cach number is generated wing the ways and print the numbers which occurred only one time such that, frequency Q?) Write a program that produces a matris with a wide of the young double subscripted array) and read cach element of the way wing office with the help of two nested for loop. Then, write a function called "print_matrittich receives the amay as the input argument and prints the matrix A in the formgiven below. Finally, write a function called "matrix transpose_diagonal" that print the transpose of a mans, and the diagonal clements of the matrix as shown in the list A Hint: Matris transpose is the operation that watches online the mattis AT Dugonal elements 03) Write a program that takes two character array of free. The program will take the name and surname of the user using can fiction The me a function called "capitaline" which receives the strings as pointer arguments. The functie will only capitale the first letter of the name and tamame strings. The rest of the characters beld be lowercase and if there is an uppercase letter except the first one, it did be covered to lowercase Also, the function will print the same and sertame with one space between the Hint 1: Pass the arguments wing call-by-reference method and write the action porter definition Hint 2: Use the function prototype void capitalinchar,char Hint 3: Use upper and dower functions to detect the upper en wease letters. Use nupur and flower functions to convert lower casette opp uppercase letters to lowercase. These functions are defined in ctypehlibey Hint 4: If the name of the user is entered as "ERGE" and the same is eterodas "Best. then after applying the capitalize function, the program will George Ber Q1) Write a C program using the arrays to eliminate the duplicate numbers. Generate 50 random numbers between 50 and 150 using rand function. Insert the random numbers to the array with a size 50. As each number is generated, print it only if it's not a duplicate of a number already generated. Provide for the "worst-case" in which all 50 numbers are different Hint: Calculate the frequency of each number as each number is generated using the arrays and print the numbers which occurred only one time such that, frequency[i]=1. Q2) Write a C program that produces a matrix with a size of three by three (using a double subscripted array) and read each element of the array using scanf function with the help of two nested for loops. Then, write a function called "print_matrix which receives the array as the input argument and prints the matrix A in the form given below. Finally, write a function called "matrix_transpose_diagonal that prints the transpose of a matrix, AT and the diagonal elements of the matrix as shown in the hint. 200 201 202 A = 210 211 212 azo 821 822 Hint: Matrix transpose is the operation that switches the row and column indices of the matrix. doo 10 020 AT = 001 011 421 do2012 022 000 Diagonal elements: 011 d22 Q3) Write a C program that takes two-character arrays of size 15 from the user. The program will take the name and surname of the user using scanf function. Then write a function called "capitalize" which receives the strings as pointer arguments. The function will only capitalize the first letter of the name and surname strings. The rest of the characters should be lowercase and if there is an upper-case letter except the first one, it should be converted to lower-case. Also, the function will print the name and surname with one space between each other. Hint 1: Pass the arguments using call-by-reference method and write the function using pointer definition. Hint 2: Use the function prototype void capitalize(char *s1, char * s2); Hint 3: Use isupper and islower functions to detect the upper case and lowercase letters. Use toupper and tolower functions to convert lower case letters to uppercase and uppercase letters to lowercase. These functions are defined in ctype.h library. Hint 4: If the name of the user is entered as "gEoRGe" and the surname is entered as "BeST", then after applying the capitalize function, the program will print "George Best