Question: ///////////////////////////////////////////////// - ask input and output file names - open input and output files ///////////////////////////////////////////////// - m = read size of matrix - x =

 ///////////////////////////////////////////////// - ask input and output file names - open input

/////////////////////////////////////////////////

- ask input and output file names

- open input and output files

/////////////////////////////////////////////////

- m = read size of matrix

- x = create array of size m by m

- read m*m values into x

/////////////////////////////////////////////////

- m = read size of matrix

- y = create array of size m by m

- read m*m values into y

/////////////////////////////////////////////////

- finding sum

- u = create array of size m by m

- for (i = 0 to m-1) for (j = 0 to m-1) u[i][j] = x[i][j] + y[i][j]

- print m

- print u

/////////////////////////////////////////////////

- finding product

- v = create array of size m by m

- for (i = 0 to m-1) for (j = 0 to m-1) { temp = 0 for (k = 0 to m-1) temp = temp + x[i][k]*y[k][j] v[i][j] = temp }

- print m

- print v

/////////////////////////////////////////////////

///////// Java /////////

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!