Question: Write a C++ program to implement a circular queue (perform rotation on an array). 10 customers are sharing a resource and they are allocated 10
Write a C++ program to implement a circular queue (perform rotation on an array). 10 customers are sharing a resource and they are allocated 10 minutes each time it is their turn (They are allocated the 10 minutes when they are in the location 0 of the array int service[10];) . Fill the array with the following customer IDs: 10, 20, 30, 40, 50, 60, 70, 80, 90 , 100
Each time you perform a rotation, print the content of the array and indicate that the customer in the first cell is the one using the resource.
Once finished, copy your code and PrtScn of output to a word document and upload to this drop box.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
