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

- convert into hql
- how to convert sql into hql
- How To Store Multilple Images In MySQL database dynamically with image uploader and then retrieve them in image gallery using java
- Run a .exe from a class
- java.lang.NoClassDefFoundError: org/hibernate/engine/FilterDefinition error
- how to create SOAP based web service in java?
- callable interface
- how to fetch data from mysql database table and draw a bar chart on that data using in jsp
- how to create users in LDAP using java?
- how to authenticate user using TIVOLI api in java?