Results 1 to 3 of 3
Thread: Java Representation
- 05-08-2011, 07:11 AM #1
Member
- Join Date
- May 2011
- Posts
- 5
- Rep Power
- 0
Java Representation
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.
- 05-08-2011, 07:20 AM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
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
[code]
YOUR CODE HERE
[/code]
- 05-08-2011, 07:28 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,408
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Memory representation of an array?
By hellolleh in forum Forum LobbyReplies: 2Last Post: 04-29-2010, 03:05 AM -
graphical representation of website structure
By mrpwnt in forum New To JavaReplies: 0Last Post: 12-09-2008, 10:08 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks