Modeling molecules is solids, liquids, and gases
Here is a model to simulate the forces between molecules. It was written to show to middle school students, but it could be used at other levels too. In particular, parts of the code are fairly involved. Asking students to make any meaningful changes to the model is probably a high school or even college level assignment.