Results 1 to 11 of 11
  1. #1
    owencain is offline Member
    Join Date
    Jun 2011
    Posts
    12
    Rep Power
    0

  2. #2
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,058
    Rep Power
    5

    Default

    I can write it. I won't, but I can.

    I'd like that in cash, please.
    Get in the habit of using standard Java naming conventions!

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,586
    Rep Power
    23

    Default

    Why do you want to pay someone to do something you could do yourself?

  4. #4
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    382
    Rep Power
    3

    Default

    I'm no math geek myself, but it looks like all normal array operations. Shouldn't be too hard to do it, really.

    Not that I will, mind you. I generally don't do other people's homework.

    EDIT: Hmm... Five lines of code, I think. Should be all it takes.
    Last edited by Toll; 06-16-2011 at 03:05 AM.

  5. #5
    owencain is offline Member
    Join Date
    Jun 2011
    Posts
    12
    Rep Power
    0

    Default

    can somebody please help me atleast start, i will fail the course :(:(

  6. #6
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    382
    Rep Power
    3

    Default

    Take it step by step. What, exactly, are they after? Are you able to do it with pen and paper? If so, translate that to code. If not, figure out how to do it with pen and paper first.

  7. #7
    owencain is offline Member
    Join Date
    Jun 2011
    Posts
    12
    Rep Power
    0

    Default

    what do you mean pen and paper? I do not understand the assignment at all, thats why i need some serious help

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,586
    Rep Power
    23

    Default

    Start with a piece of paper and pencil. Write a matrix with the x,y values for the source and then write down the x,y values for the target matrix. Look at the pattern. For example the 1 at row 0, col 1 goes to row1 , col 0
    For this case x,y becomes y,x.
    When you see the pattern, make a 3x3 matrix and do the same and look for the x,y pattern.
    Then try to write a loop for the row and an inner loop for the column and work out the logic there. Again use a piece of paper and pencil and play computer with the x,y or row, col to get the pattern.

  9. #9
    Toll's Avatar
    Toll is offline Senior Member
    Join Date
    May 2011
    Location
    Sweden
    Posts
    382
    Rep Power
    3

    Default

    I mean... do you understand how the transpose works? If I gave you a matrix, would you be able to transpose it? Try transposing this, for instance:
    Java Code:
    [ 5 2 8 ]
    [ 4 8 1 ]
    [ 2 7 3 ]
    If you can't figure out how to do that by hand, then you most likely won't be able to do it with code. Google it if you have to (I assume there's some pages out there about it; I've not looked myself, to be honest).

  10. #10
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    Double post : Please help. Arrays.

    @OP: I'm not trying to be mean, but please recognise that nobody here is going to write your code for you, neither in this thread nor the other. The interest (and there's plenty of it) is in your understanding not your passing the course. So what is important is the code you write, not the code that others might write for you. Follow (and follow up on) Norm's suggestion.

  11. #11
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    He seems to be only interested in cheating. I am going to lock this thread and ban him unless others feel strongly otherwise. I don't think that there's much redeeming him.

Similar Threads

  1. What are you using to write your code?
    By CaptainMorgan in forum New To Java
    Replies: 983
    Last Post: 03-26-2014, 10:12 AM
  2. Help me re-write pseudo code?
    By csisdifficult in forum New To Java
    Replies: 15
    Last Post: 04-21-2011, 06:30 AM
  3. how do i write this code?
    By Libertyman in forum New To Java
    Replies: 23
    Last Post: 06-22-2010, 12:43 PM
  4. Cash Prize Challenge
    By Laura 123 in forum New To Java
    Replies: 19
    Last Post: 04-01-2009, 03:56 AM
  5. JSP Prize Tags 3.4.0
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-13-2007, 03:38 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
  •