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

a. Write a function printme that prints the contents of any 2-dim array of ints

ID: 3655003 • Letter: A

Question

a. Write a function printme that prints the contents of any 2-dim array of ints (I will check it with a small number of rows and columns) PASS TWO-DIMENSIONAL ARRAY. IN EACH OF THE CASES YOU WILL PROBABLY WANT TO ALSO PASS THE VALUES FOR THE NUMBER OF ROWS AND THE NUMBER OF COLUMNS. b. Write a function oddvalues that prints just the odd ints in any 2-dim array row by row with 0 printed whenever the int is even. PASS TWO-DIMENSIONAL ARRAY. c. Write a function oddlocations that prints the row index for every row that contain at least one odd int in any 2-dim array. PASS TW0-DIMENSIONAL ARRAY. d. Write a function countoddrows that prints the number of odd ints in every row of a 2-dim array. PASS TWO-DIMENSIONAL ARRAY. e. Write a function addrows that adds and prints the sums of the ints for every row of a 2-dim array. PASS TWO-DIMENSIONAL ARRAY. f. Write a function findfirstsmall that prints the first index of the smallest int for every row of a 2-dim array. PASS TWO-DIMENSIONAL ARRAY. g. Write a function findlastlarge that prints the last index of the largest int for every row of a 2-dim array. PASS TW0-DIMENSIONAL ARRAY. The next two are a bit harder! h. Write a function addcolumns that adds and prints the sums of the ints for each and every column of a 2-dim array. PASS TWO-DIMENSIONAL ARRAY. (SEE PART e). i. Write a function averagecolumns that prints the averages of the ints for each and every column of a 2-dim array. PASS TWO-DIMENSIONAL ARRAY AND PRINT AS XXX.XX Write your functions with appropriate parameters and return types. IT IS POSSIBLE TO PASS AN INDIVIDUAL ROW OR COLUMN ALSO. YOU ARE FREE TO DO THAT IF YOU LIKE, INSTEAD OF PASSING THE ENTIRE ARRAY. I THINK IT IS SIMPLER TO WRITE FUNCTIONS THAT RECEIVE THE ENTIRE ARRAY. Do the following: Build the appropriate array, call the remaining functions with that array: printme, oddvalues, oddlocations, countoddrow, addrow, findfirstsmall, findlastlarge, addcolumns, averagecolumns. Your output should be. Complete the .... and label a.b.c. etc as indicated: a. The contents of the array are the ints, printed row by row:.................. b. The zeroed elements and odds of the array are: ................... c. The various rows of the array that contain at least one odd int are:....................... d. The various number of odd numbers in each row is:.................. e. The various row sums are:.................. f. The various first indices of the smallest int for each and every row is:............. g. The various last indices of the largest int for each and every row is........... h. The various column sums are: i. The various column averages are: When you are finished you should also close the file and free(table) where table is the array pointer. I need to also know how to open the unknown file in main when running ./a.out and have this program use the data in that file to complete the functions in the program and I need my own header file for everything

Explanation / Answer

Please post the question in parts as different questions because no one will be ready to solve this big question for 350 points Understand that Thank you

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote