Suppose that queue is an object of type queueType of size 50,
queue contains 20 elements, and the index of the first element queue is 35.
a. What is the index of the last element queue?
b. After removing the next element from queue, what is the index of the
first element?
c. Write the expression that returns true if queue is nonempty, false
otherwise.
d. Write the statement that inserts “programming” into queue. What is
the index of the last element after the insertion operation.
Suppose that queue is an object of type queueType of size 50,
queue contains 20 elements, and the index of the first element queue is 35.
a. What is the index of the last element queue?
b. After removing the next element from queue, what is the index of the
first element?
c. Write the expression that returns true if queue is nonempty, false
otherwise.
d. Write the statement that inserts “programming” into queue. What is
the index of the last element after the insertion operation.