Can someone please write a piece of code for the following and comment each line (except for really simple ones like int x = 5;) explaining what it does?
Objective: write a program that "spins a number wheel" in the background while waiting for you to type "stop" -- when you type stop it pops out what the pointer is currently pointing to (a number 1-10). I want it to change numbers every second by one unit (1,2,3...10) and then loop back. Even though it is behind the scenes, I DON'T want to just generate a random number with the math class. I want someone with perfect timing to be able to get a 10 :P
If you can do this that would be awesome!!!