Question: NEED HELP WITH THIS. DON'T KNOW HOW TO DO IT AT ALL. Project 01: 2D Arrays Processing Obiective To design and implement functions to process

NEED HELP WITH THIS. DON'T KNOW HOW TO DO IT AT ALL.

NEED HELP WITH THIS. DON'T KNOW HOW TO DO IT AT ALL.

Project 01: 2D Arrays Processing Obiective To design and implement functions to

process 2DArrays. Be sure to document your code (add comments on top

Project 01: 2D Arrays Processing Obiective To design and implement functions to process 2DArrays. Be sure to document your code (add comments on top of each function). In the comments add your name, date, course, homework number, and statement of problem. Once you are done, upload your final solution through Blackboard. No need for input validation. Write a project called Arrays2D.c Steps .It is up to you to choose what the return type should be. Be creative! Functions should not have pointers imple mentations. Arrays2D.c has the following functions Partl 150 points: (2-Dimensional Array Functions) I. 10 points Write a function called max that retums the maximum value in the 2d array 2. 10 points Write a function called rowSum returns the sum of the elements in Row x of the 2d array 3. 10 points Write a function called co1umnSum returns the sum of the elements in Column x of the 2d array . 10 points Write a function called isSquare that checks if the array is square (i.e. every row has the same length as the 2d array itse If) 5. 10 points Write a function called displayoutputs that displays the 2 dim-aray clements. Part2 120 points: (Testing main) Arrays2D First declare a 2-dim array. How to do that? You need to read the number of rows and the number of columns from the user, and then it reads a corresponding entries to that size. Eg., if a user enters 3 for the number of rows, and enters 3 for the number of columns, then we declare an array of 9 and then read 9 entries and store the m in the array. (Remember the Run-time Armay Length!) Make calls to all functions in part 01 to match the sample demo below Make sure you display the same exact messages Use blank lines to separate outputs and make then more readable o See how I printed out the output format below Sample run: Let's create a 2Dim array! How many rows? How many columns? 11 enter [01 [0] enter [01 [1 22 enter [o1121: 33 enter [11 [0]: 44 enter enter [11121: 66 Sum of row 1-66 Sum of row 2 165 Sum of column1- 55 Sum of column 2-77 Sum of column 3- 99 This is not a square array Here is your 2Dim array: [11, 22, 33] [44, 55, 66] Let's create a 2Dim array! How many rows? How many columns? enter [01 [01: 10 enter [01 [1]: 20 enter [01 [21: 30 enter [11 [0]: 40 enter [11 [11: 50 enter [11 [21: 60 enter [21 [0]: 70 enter [21 [1]: 80 enter [21 [21: 90 Sum of row 1-60 Sum of row 2 150 Sum of row 3 240 Sum of column 1 - 120 Sum of column 2150 Sum of column 3-180 This is a square array Here is your 2Dim array [10, 20, 301 [40, 50, 601 [70, 80, 901 Project 02: Arrays of Pointers to Functions To design and implement array of function pointer. .Be sure to document your code (add comments on top of each function) In the comments add your name, date, course, homework number, and statement of problem. Once you are done, upload your final solution through Blackboard. No need for input validation. Write a project called ArraysofPointers.c Steps: Rewrite the program of Fig. 6.22 to use a menu-driven interface. The Program should offer the user four options as follows: Enter a choice: 0 Print the array of grades 1 Find the minimum grade 2 Find the maximum grade 3 Print the average on all tests for each student 4 End Program One restriction on using arrays of pointers to functions is that all the pointers must have the same type. The pointers must [10 points For this reason, the functions in Fig. 6.22 must be modified so that they each return the same type and take the 20 points Modify functions minimum and maximum to print the minimum or maximum value and return nothing. For [ 10 points] Function average should return nothing and take the same parameters as printArray, minimum, and [ 10 points] Store the pointers to the four functions in array process Grades and use the choice made by the user as the be to functions of the same return type that receive arguments of the same type. same parameters. option 3, modify function average of Fig. 6.22 to output the average of each student (not a specific student) maximum index into the array for calling cach function (Testing main) ArraysofPointers First declare a 2-dim array. How to do that? You need to read the number of rows and the number of columns from the user, and then it reads a corresponding entries to that size. E.g., ifa user enters 3 for the number of rows, and enters 3 for the number of columns, then we declare an array of 9 and then read 9 entries and store them in the array. (Remember the Run-time Array Length .Call all functions in part 1 to match the sample menu above. So after each call, you are going to throw the menu again, and keep doing that as long as the user is not entering 4 to end peogram. Use blank lines to separate outputs and make then more readable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!