Difference between revisions of "CSC111 Lab 11 2015"

From dftwiki3
Jump to: navigation, search
Line 313: Line 313:
 
<br />
 
<br />
 
* Modify the moveRandom() method so that the fish disappears from the graphics window, it is moved back on the other side of the aquarium.
 
* Modify the moveRandom() method so that the fish disappears from the graphics window, it is moved back on the other side of the aquarium.
* Create a list of 10 fish with the "fish0.gif" image, and 10 fish with the "fish20.gif" image (or some fish that is headed in the opposite direction).
+
* Create a list of 10 fish with the "fish0.gif" image, and add 10 fish with the "fish20.gif" image (or some fish that is headed in the opposite direction).
* Modify the Fish class so that you can define the direction a fish goes into.
+
* Modify the Fish class so that you can define the direction a fish goes into when you create it.  
 +
* Verify that the fish swim in the correct direction.
 +
* Demonstrate your program to the lab instructor or a TA when you're done.
 +
<br />
 +
<br />
 +
<br />
 +
 
 
<br />
 
<br />
 
<br />
 
<br />

Revision as of 12:50, 12 April 2015

--D. Thiebaut (talk) 19:36, 11 April 2015 (EDT)



...