question archive 1) makeServiceQ() Return an empty Service Queue as a tuple, where the first part of the tuple is a tag 'SQ' and the second part of the tuple is an empty list
Subject:Computer SciencePrice: Bought3
1) makeServiceQ() Return an empty Service Queue as a tuple, where the first part of the tuple is a tag 'SQ' and the second part of the tuple is an empty list.
2)contentsQ(q) Takes a Service Queue as input and returns the list of Customer Records in the Service Queue.
3)frontServiceQ(q) Takes a Service Queue as an input and returns the element in the front of the list.
4)addToServiceQ(custRec,q) Takes a customer record and a Service Queue as input and adds the given record to the appropriate position in the queue.
5)removeFromServiceQ(q) Takes a Service Queue as input and removes the front element from the Queue.
6)isServiceQ(q) Checks to see if a given Service Queue is a valid Service Queue.
7)isEmptyServiceQ (q) Checks to see if a given Service Queue is empty.
Hi how would these be written in python functions ?