|  
          Labs and AssignmentsAlyce 
        Brady, Pamela Cutter, Kelly Schultz | 
if statements 
    and using the Random classRandom class, with a follow-up 
    exercise using an array of integers (this project uses a BoundedEnv 
    object for plotting the histogram, although students don't have to be aware 
    of that)BoundedEnv object), plotting pictures 
    by placing colored blocks in the grid (graphics is all behind the scenes)Fish class.  
    In this project students enhance the way minnows move in their environment, 
    going from simple forward movement to the random movement exhibited by fish 
    in the MBS Fish class.  You may find it useful to have students 
    read up to page 31 of the MBS case study and answer the questions in Analysis 
    Question Sets 2 and 3 on pp. 26 and 31 before they do the Minnow assignment.DarterFish 
    ClassFish subclass, along with 
    two data files (4species.dat and Unbounded4species.dat) 
    that define initial configurations for environments containing fish, darters, 
    and slow and fast fish.Fish subclass that always moves 
    forward, either straight ahead or angling slightly to either side.  These 
    fish assume they have eight adjacent locations (north, northeast, east, southeast, 
    etc.) rather than four (north, east, south, and west).*AP and Advanced Placement are registered trademarks of the 
  College Entrance Examination Board, which has not endorsed this workshop or 
  web site.
  Last modified on 
  7/6/03
  by Alyce Brady.