CompSci 4 - Classwork - Nov 8, 2005
5 pts

Today's classwork goes along with Chapter 9. We will get more practice with lists.

The following work needs to be checked off when you have completed it.

Today you will sort the animals by height, placing the tallest animal to the right (positioned at the rightmost tennis ball), then the next tallest, etc. and finally the shortest animal to the left (positioned at the leftmost tennis ball).

A player is considered "taken" if it has been placed in sorted position. We will use a boolean class variable isTaken to indicate if a player is taken or not. If a player is taken, then you should not compare it with other players.

Tennis balls will be considered taken if their color is NOT yellow. A tennis ball is taken if a player has been placed in sorted order at that tennis ball. To make a tennis ball taken, you must change its color to something other than yellow.

If you finish early, feel free to embelish your animations.