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:
There are three kinds of actuaries: those who can count, and those who can't.
The method swapMatrix should perform a column swap.
123
456
789
The swap should change the array to
231
564
897
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.
@Junilu Lacar
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[0], col[1], col[2], 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?
All things are lawful, but not all things are profitable.
this method is not performing a column swap
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |