Exercise: A simulation of charged particles
Create several particles with positive and negative charges – The amount of charge can vary: -3, +5, etc. • Run a simulation – Particles with the same charge (positive, negative) repel each other – Particles with opposite charge attract each other • Different simulation modes – Scientific: inverse-square law, but this makes for a boring display – Unscientific: inverse-linear, more attractive to look at • Add other functionality as desired – Bounce off the walls? – Other simulation modes? – Use your imagination!