matrix operations with conditions,
October 20, 2008 at 11:19 AM
**how can i do this? please help me!**
create a java program that will text 2 matrices and provide an operatino depending on the elements. the program create a new set of matrix containing the answer. display matrix 1 & 2 & matrix answer.
condition:
1. if matrix 1 element is even and matrix 2 element is even, it will perform multiplication.
2. if matrix 1 element is odd and matrix 2 element is odd. it will perform subtraction.
3. if matrix 1 element is even and matrix 2 element is odd. it will perform addition.
4. if matrix 1 element is odd and matrix 2 element is even, it will perform division by integer.