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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started