create a traffic light control program that will do the following things: 1. remove the traffic control logic from the main program. 2. add methods to the traffic light objects that will (1) allow them to talk to each and (2) control how they display green / yellow / red.

Respuesta :

The color of the traffic light, Red indicates a stop or a danger sign, yellow indicates caution, and green indicates you may start walking with caution. Typically, red lights contain some shades of orange, and green lights contain some shades of blue.

Traffic light explanation

Each installation of a traffic light aims to have one or more of the following functions: to obtain an orderly traffic movement, to increase the traffic capacity at crossroads, to reduce the frequency of certain types of accidents. The whole world must use the same traffic lights in terms of colors, namely red, yellow and green.

Learn more about traffic lights:

brainly.com/question/28033780

#SPJ4