N0698311 / SDI

Software Design Implementation
0 stars 0 forks source link

Queues and Indexes #26

Open N0698311 opened 6 years ago

N0698311 commented 6 years ago

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.