The cars initially start at positions 24, 12, and 0. The stoplight is at position 50, is initially green, and switches every 10 seconds.
This program should simulate 100 seconds of operation. For each second, it should print out a line with the second number, the state of the stoplight and the positions of all three cars. The 'seconds' are simulated, and they can advance through a mechanism of your choosing (eg clicking a button, interval timer, keystroke, etc)
Hi, I'm ready to start this project. Sounds simple enough to be completed in one day, assuming you don't need any graphics, just the simulation. I can make the code well-commented and easy to understand too.