Question: C++ Write the circular queue class (you may use the linked list version or dynamic array/vector implementation). Call it cqueue. Use your circular queue class
C++
Write the circular queue class (you may use the linked list version or dynamic array/vector implementation). Call it cqueue. Use your circular queue class to simulate a real world 3-color (Green, Yellow, and Red) traffic light system. The Red and the Green lights stay on for a duration selected by the user, while the Yellow stays on for a very small amount of time that is already predefined in the system. After the duration has passed, the light switches to the next color.

Circular Queue using Arrays AR AI0] AN-1 Circular Queue using Linked list AIN-2 Arl] AI2] FRONT REAR A[2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
