Write a program that simulates a traffic light. The program lets the user select one of three lights: red, yellow, or green. When a radio button is selected, the light is turned on, and only one light can be on at a time (see Figure below). No light is on when the program starts.
See figure. see image.
The radio buttons are grouped to let you select only one colour in the group to control a traffic light.