☑Kizspy.me
Searching for Order ID in BST: Order7
The expected output used to test your code are as follows:
Zoom
Action Log Stack: (Action7,Modified) (Action6,Placed) (Action5,Returned)
(Action4,Canceled) (Action3,Shipped) (Action2,Updated) (Action1,Placed)
Order BST: (Order0,F,2500.0) (Order1,D,3000.0) (Order2,B,200.0) (Order3,E,150.0)
(Order4,C,500.0) (Order6,A,1000.0) (Order9,G,800.0)
Order not found in BST←
c. f30-2 marks: In this task, students need to perform the findMin() method in
OrderBST. This function will printout the Order with the lowest "alphabetical"
orderID, which is the first order in the inOrder traversal.
The expected output used to test your code are as follows:
Action Log Stack: (Action7,Modified) (Action6,Placed) (Action5,Returned)
(Action4,Canceled) (Action3,Shipped) (Action2,Updated) (Action1,Placed)
Order BST: (Order0,F,2500.0) (Order1,D,3000.0) (Order2,B,200.0) (Order3,E,150.0)
(Order4,C,500.0) (Order6,A,1000.0) (Order9,G,800.0)
Lowest Alphabetical Order ID in BST: (Order0,F,2500.0)←
d. f40)-3 marks: In this task, students need to be able to perform these following methods:
• pop() in ActionLogStack method is used to pop the top action in ActionLogStack,
+ 100%
Close