Question: C language not. If it is, it returns 1, otherwise returns O. numbers usiint ): This function takes an integer pointer and the input size
not. If it is, it returns 1, otherwise returns O. numbers usiint ): This function takes an integer pointer and the input size and neger pointer. The random numbers range from the value 1 to 10 only void print pointerArray(int , int): prints out random numbers using the integer pointes e nde his function takes an integer pointer and the input size and takes an int find max(int ", int): This function takes in an integer pointer and the input size and returns the largest value stored in the pointer int find_minint , int): This function takes in an integer pointer and the input s smallest value stored in the pointer. void bubble sort(int , int): This function takes in an integer pointer and the inmpu to sort the pointer will then implement a bubble_sort algorithm (without using built-in sorting ) to sort the for a bubble sort there functons ascending order (smallest to largest). If you are having trouble writing the code o should be plenty of tutorials online to reference. float find median(int*, int): This function takes in an integer pointer and the input size the median of the list of numbers within the pointer. Note that if there is an odd number of pointer, then the median will be the middle value. If there is an even number of digits in the p digits in th the median will be the average of the two "middle numbers." main): First read the input size from the user by calling get size, performing an error com check usin check size function. Call functions initialize array and print array to store and print the random numbers. Then, call find max and find min to return the largest and smallest values within the rP After that, call bubble_sort to sort the pointer in ascending order and print out the newly sorted p After that, call find median to find the "middle" value of the sorted pointer. Display the results in the sample output below. Sample Output S /a.out Enter the size of the pointer: 109 Please enter again: -1 Please enter again: 7 The pointer is: 915194 5 The minimum of all the numbers-1 The maximum of all the numbers-9 The sorted pointer is: 1145599
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
