Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer in c, Im having a hard time trying to figure this out. Thank you! number 2 please! C. (2pt) Write a function to
Please answer in c, Im having a hard time trying to figure this out. Thank you! number 2 please!
C. (2pt) Write a function to check if all the numbers in a given integer array are unique numbers or not. If yes, it returns 1; otherwise it returns 0 int check_ if unique (int *arr, int n) d. (4pt) Suppose we want to compute the sum of the integer values in a given array using the following function prototype: int arr_sum( int arr, int n This function can simply be implemented as an iterative function. However, you are asked to think about a recursive strategy and implement arr_sum (. . .) as a recursive function. (No credit will be given for an iterative implementation!) int arr sum( int arr[], int n ) // must be recursive to get 4pt 2. (15pt) Suppose we store a 2D array of double values in a text file as follows: First two integers represent the numbers of rows and columns. File then contains that many rows and columns of double values. For example a 3x 10 matrix of double values can be stored as follows: 2.7 3.4 5.3 10 5.3 4.6 4.5 3.8 4.5 3.4 5.3 3.9 1.3 5.8 4.5 3.8 4.5 1.3 5.3 2.9 4.5 5.8 1.3 5.3 4.5 5.3 3.5 Write a program that takes the name of such a file from the command line and finds/prints the average of each column on the screen. For the above file your program should print out 4.5 3.8 4.8 3.9 3.0 3.5 4.7 3.7 4.4 3.4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started