Marine Biology Case Study
- Part I: Fish in an Aquarium
- One fish moving back and forth in an aquarium
Concepts Covered
- Classes, functions, if statements, for loops
- Introduction to simulation
- Random numbers, random behavior
- Part II: Fish in San Francisco Bay
- Many fish moving in a large, bounded environment
Concepts Covered
- While loops, vectors, matrices, data representation
- Black-box testing
- Object interaction, many objects
- Analyze design decisions
- Pass-by-value (pass-by-copy), return by copy