NEED SOLUTION

closed account (SGEwURfi)
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.

http://www.cplusplus.com/doc/tutorial/basic_io/
http://www.tutorialspoint.com/cplusplus/cpp_if_else_statement.htm
Last edited on
Topic archived. No new replies allowed.