the code that I have so far isn't working correctly and does not continue moving columns until all variations are met.
Steven Ericksen wrote:
The method swapMatrix should perform a column swap.
The swap should change the array to
And have you spoken to your teachers? You now have a problem which you cannot sort out, and you are liable to get poor marks through no fault of your own. You need to seek advice before things get worse.
Steven Ericksen wrote:. . . a team project. . . . my partner . . . dropped the class three days into the project . . .
Steven Ericksen wrote:Before I get to that point I need to figure out why I'm messing up right now. Then it should be fairly simple to change the operations to change rows instead of columns.
Am I understanding you correctly? That for the swap, I should create an additional array that I pass the changes to.
if there are only 3 columns. col, col, col, I need it to be able to swap those from (0,1,2) to (0,2,1)
I don't know which one is correct.
it isn't compiling.
swapMatrix the goal is to swap columns so the 0,1,2 could become 0,2,1
//or 0,1,2 to 1,0,2.
When I run it
So do I need to write a method for each swap?
this method is not performing a column swap