Kizspy.me
7
data.txt
3
OUTPUT:
Order Queue:
A, Computer
E, Tablet
B, Keyboard
G, Phone
H, USB
C, Mouse
D, Monitor
Item Tree:
A, Computer, 1500
B, Keyboard, 120
C, Mouse, 100
D, Monitor, 500
E, Tablet, 1000
G, Phone, 1000
H, USB, 15
=========
Highest Alphabetical ID Item:
H, USB, 15
3
d. f4(): In this task, students need to perform the serving function, including dequeue()
function of the OrderQueue and the remove() function in ItemTree. The dequeue()
function returns the first Item in the queue after removes it out of the queue. In f4()
function if this Itam is found in the Itam Tron moun it out of the tron and then return
Close
Zoom
+ 100%