Write your question here.
4) Implement the program which reads a character from the user as the indication of color of the traffic light, and send a comment to the user.
Input : A character indicating color of light ('r','y','g').
Output : "WAIT", "GET READY", "GO" or "WRONG INPUT".
And I need a billion dollars so I guess we're on the same boat.
On a more serious note, if you want a solution then write the program.
Last edited on