Today's classwork gives you practice with both visual and nonvisual arrays.
For example, once when I ran my code, it generated the following numbers into my array:
and the output printed was:
Hint: You will need to add in an objectVisualization for swapping. Suppose the parameter color is blue. Then start in position 0 and check the color of the frog. If the color is not Blue, then call the function your wrote isColorToTheRight with Blue. It either returns the position of a blue frog (then swap it with the frog in slot 0) or it returns -1 (meaning no more blue frogs to the right in the array). Repeat this in a loop with position 1, 2, 3, etc. continuing through the array swapping frogs if you need to.