Hi. Please I need help with the question below. I am new to Java and would like to gain more knowledge of it. Thanks.
Give the Java representation of a class called matrix which has the following:
- Data: number of rows N, number of columns M, M by N array of integers, a
1X2 integer matrix with all members as 0
- Methods: more than one constructor method, accessor methods, a method
called summation to return the sum of the integer members of the matrix.
c) Write a driver class TestMatrix.java to test the Matrix class.
i) Create two 3X3 matrices with any integers you wish and display the matrices
on the screen.
ii) Print out the summation of each matrix.
iii) Create five 3X3 matrices using a loop, where you can choose the members
of the matrix to be all random numbers or all even numbers or all odd
numbers or a mixture.
I would like a cold beer, sadly I am at work :(
Try asking specific questions and attempting this yourself rather than just dumping the assignment.
If you post code, please use code tags
YOUR CODE HERE
What is the 'summation of a matrix'?
Originally Posted by lary