Comment

bubbles

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.

sample:

5 2 1 8 9 11 0 11 10

6 3 2 13 10 0 = 19 0 0

0 1 7 12 2 1 0 0 0

View All Comments | View Tutorial

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.

sample:

5 2 1 8 9 11 0 11 10

6 3 2 13 10 0 = 19 0 0

0 1 7 12 2 1 0 0 0

View All Comments | View Tutorial

Related Tutorial and Articles

Advertisements
Advertisements

- What is NoSQL?
- OptionPane.GetInputDialog. Is it really Modal?
- Class and interface in same file and accessing the class from a main class in different package
- Class and interface in same file and accessing the class from a main class in different package
- username and password in servlet
- question
- What do you understand by JPA?
- JAVA SWING
- Hibernate Query Checker
- Hii i want a JMS application can anybody help me