New answers tagged

2

You probably could adapt A. K. Dewdney’s “Sharks and Fishes” programming challenge from his old Scientific American column (https://www.cs.mcgill.ca/~carl/fishnsharks.html). Here’s another example of it being used in education https://people.eecs.berkeley.edu/~jrs/61bf06/hw/pj1/readme In this case, you could just have one subject type (people) but maintain ...


3

I teach a Mathematical Modeling elective at the high school where Ben I. and I teach. I would love to do an in-depth object-based model using programming with my students, but generally speaking I don't have the ability to assume that all of my students know how to code. Most of them, but not all. So, my solution is typically to use spreadsheets and the ...


4

Here are two resources that might be appropriate, but neither is a spreadsheet model. The first is a resource called Contagion that has just been created for the Greenfoot Java system (IDE plus resources). You can find it at the Greenroom. The second is a section on Simulation in a book called Polymorphism Companion. The book is actually the second ...


1

To add to Simon's answer, I've used the "phone number" analogy, but using a phone number as a reference to a person, rather than as a reference to a phone. The example is meant to explain the behaviour of algorithms like the below, when you have a list created like [Person()] * 10 in Python: for person in people: person.wear_hat() If you really had a ...


Top 50 recent answers are included