Example for Khan Academy AP Computer Science Principles article on smart transportation:
https://www.khanacademy.org/computing/ap-computer-science-principles/gl…
Screen recording of this traffic simulation program: http://www.traffic-simulation.de/onramp.html