Results 1 to 3 of 3

Thread: Help

  1. #1
    chairman is offline Member
    Join Date
    Sep 2009
    Rep Power

    Default Help

    I have no clue of java but I have this problem:
    We need a method that accepts two unidimentional matrices array1 and array2 of the same size where array1 has interger values and array2 boolcan values and it returns the product of the negative values of array1 to the places where array2 has True values.
    need it desperately and as fast as possible

    edit: also
    A)a class "foo" where it includes a checkRowsum method where it accepts as unique parameters one 2-dimension matrix of intergers let it be A, and an interger let it be thresholid.i.
    checkRowsum that it computes how many lines of A have sum of their elements grater than threshold-H.Your method should not include any call to input methods(pww nextlnt) or output (println)
    B)a "main" method which can read from the keyboard the M.N and a M*N matrix of intergers that calls checkrowsum and it shows the number of the lines that have sum greater than 100
    I need it for an assignment. If something looks strange it is because it is translated from another language
    thank you for any help
    Last edited by chairman; 09-04-2009 at 06:30 PM.

  2. #2
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Rep Power


    I'm a little bit confused as to what you want... if you can give an example of some sort it would help.

    Also, what do you need this for?
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Agrees with Boyo: You may get better help if you give us more details including sample data. Is this for a school assignment? What does the rest of the program look like? And why the rush?

Posting Permissions

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