Write a program which adds two matrices together and


Programming Problem:

NOTE: You can't use global variables! You can use global constants.

Program- Write a program which adds two matrices together and displays the sum.

- Your program should declare three 3 x 3 arrays. Two arrays will contain user input, and the third array will be used to contain the sum of the two arrays.

- You must write a function which gets input from the user and loads an array a row at a time. Your main routine will call this function twice.

- You must have another function which takes the two input arrays and adds the corresponding elements, placing the result into the equivalent position in the result matrix.

Theoretically, matrix addition is as given:

                        result[x][y] = input1[x][y] + input2[x][y];

Lastly, your program should display both input matrices and the result matrix in a way that the sum of the two matrices can be simply verified by looking at the output.

Prepare a function that shows the contents of an array to the screen and have your main program use that function to show the contents of the three matrixes.

I have the solution already but i do not understand it; I need expert to guide through it step by step. thanks!

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program which adds two matrices together and
Reference No:- TGS0966310

Expected delivery within 24 Hours