Oh wow. That helped a ton. I'm surprised I even did this much right lol. Nested for loops have been death for me.
Alright, so, three things.
1, the output isn't showing the full array or the word "What" and I have no idea why.
http://prntscr.com/bx3wnx
2. While I actually did the number of swaps right, it's not supposed to repeat.
It should simply look like
Original order:
26 45 56 12 78 74 39 22 5 90 87 32 28 11 93 62 79 53 22 51
Bubble Sorted:
5 11 12 22 22 26 28 32 39 45 51 53 56 62 74 78 79 87 90 93
Number of location swaps: 89
3. Speaking of the number of location swaps, it should be showing for each one.
For example, it should show each one.
Original order:
26 45 56 12 78 74 39 22 5 90 87 32 28 11 93 62 79 53 22 51
Bubble Sorted:
5 11 12 22 22 26 28 32 39 45 51 53 56 62 74 78 79 87 90 93
Number of location swaps: 89
Original order:
26 45 56 12 78 74 39 22 5 90 87 32 28 11 93 62 79 53 22 51
Selection Sorted:
5 11 12 22 22 26 28 32 39 45 51 53 56 62 74 78 79 87 90 93
Number of location swaps: 19
Original order:
26 45 56 12 78 74 39 22 5 90 87 32 28 11 93 62 79 53 22 51
Insertion Sorted:
5 11 12 22 22 26 28 32 39 45 51 53 56 62 74 78 79 87 90 93
Number of location swaps: 19
It should show the insertion, selection, and bubble.
The original order should be printed first, then the name of the swap, the selection sorted, and the number of location swaps.