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

Write a program that must open a file with an unknown number of ints for reading

ID: 3654888 • Letter: W

Question

Write a program that must open a file with an unknown number of ints for reading and the name of the file will also be unknown.

must create a "my.h" that contains prototypes .

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

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.

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:

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.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote