# Thread: \$50 prize to who ever can write this code

1. Member
Join Date
Jun 2011
Posts
12
Rep Power
0

## \$50 prize to who ever can write this code

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

I'd like that in cash, please.

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

4. 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. Member
Join Date
Jun 2011
Posts
12
Rep Power
0
can somebody please help me atleast start, i will fail the course :(:(

6. 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. Member
Join Date
Jun 2011
Posts
12
Rep Power
0
what do you mean pen and paper? I do not understand the assignment at all, thats why i need some serious help

8. 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. 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. Moderator
Join Date
Feb 2009
Location
New Zealand
Posts
4,712
Rep Power
14

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

#### Posting Permissions

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