Results 1 to 3 of 3
  1. #1
    lary is offline Member
    Join Date
    May 2011
    Posts
    5
    Rep Power
    0

    Question 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.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    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]

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,007
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by lary View Post
    ii) Print out the summation of each matrix.
    What is the 'summation of a matrix'?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Memory representation of an array?
    By hellolleh in forum Forum Lobby
    Replies: 2
    Last Post: 04-29-2010, 03:05 AM
  2. graphical representation of website structure
    By mrpwnt in forum New To Java
    Replies: 0
    Last Post: 12-09-2008, 10:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •