☑Kizspy.me
7
Zoom
(Create a computer store with OrderQueue and ItemTree containing 7
nodes)
data.txt
(This file stores data)
1
OUTPUT:
Order Queue:
(Choose the question f1())
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
b. f2(): To complete the requirement f2, students need to perform this specific task:
implement the search() function with the given id of the Item Tree structure, then:
o Return the found Item, or
o If the id is not found, then return None.
。 You also need to call search() in the f2() function
+ 100%
Close