Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1) This program described below is a part of a simple queue program. Write your

ID: 3735338 • Letter: 1

Question

1) This program described below is a part of a simple queue program. Write your own custom_clearQueue', 'custom_enqueue, and 'custom dequeue' to make the program work (You can add any sub-routines or variables, if you'd like). And, you need to report specifically two numbers that are displayed on your screen (console) in sequence void custom clearQueue(void); void custom enqueue(unsigned char); unsigned char custom dequeue (void); static unsigned char queue data[255]; static unsigned char queue tail, static unsigned char queue head; int main() unsigned char tx dat] 5', '4, 3', 2, 1' , rx data; int kp; custom_clrQueue); for (kp -0; kp

Explanation / Answer

return deleted;

}

void custom_clearQueue(){

front = -1;

rear = -1;

queue_head = '';

queue_tail = '';

}

The numbers printed are: 5 and 4 (in sequence)