NEED SOLUTION

Feb 21, 2016 at 3:00pm
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".
Feb 21, 2016 at 3:02pm
Feb 21, 2016 at 3:03pm
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 Feb 21, 2016 at 3:04pm
Topic archived. No new replies allowed.