Enum Write Enum Type Called Trafficsignal Contains Constants Red Green Yellow Walk Dont Wa Q29391518
Enum Write an enum type called TrafficSignal, which contains the constants RED, GREEN, YELLOW WALK, DONT WALK with each constant having a parameter for the duration of the constant (have the duration be in terms of seconds). Write a program that tests the TrafficSignal enum so that it displays each enum constant and the duration of the enum constant. Show transcribed image text