Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Note:Make sure to use all of these functions int check_size(int): This function

ID: 3559218 • Letter: N

Question

Note:Make sure to use all of these functions

int check_size(int): This function takes an integer number and checks if the number is between 0-100 or not; if it is, then it returns 1, otherwise 0.

void initialize_2Darray(int x[][MAX], int size): This function takes an integer 2D array and the input size and initialize the global 2D array with random numbers between 0-9.

void print_2Darray(int x[][MAX], int size): This function takes the integer array and the size of the input size and prints the content of the 2D array as shown in the sample output below.

void sort_2Darray(int x[][MAX], int size ): This function sorts each row of the 2D integer array in increasing order.

sample output

Enter the size: -1

Invalid input enter the size of the array again: 121

Invalid input enter the size of the array again: 0

Invalid input enter the size of the array again: 0

Invalid input enter the size of the array again: 5

2D Array before sorting

1 6 3 6 1

9 2 0 0 5

1 6 8 7 3

5 5 4 2 3

4 2 1 5 9

2D Array after sorting

1 1 3 6 6

0 0 2 5 9

1 3 6 7 8

2 3 4 5 5

1 2 4 5 9

Explanation / Answer

good answer

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote