Question: Write a Java program for controlling the lights of a 4way traffic signal , by making the necessary assumptions, such as specifying the time interval
Write a Java program for controlling the lights of a 4way traffic signal, by making the necessary assumptions, such as specifying the time interval between light cycles, say 55s of green light, 5s of yellow, then to 60s of red light. Needless to say, the light patterns for the cross section would be the opposite.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
