☑Kizspy.me
The structure of the main classes is as follows:
-
-
Class Order: contains information about an Order object, including orderID,
customerName, and totalPrice.
Class TreeNode: includes an Order object and left, right pointer for tree structure.
Class OrderBST: is a Binary Search Tree structure, where the node also contains
complete Order data. This Tree's role is to store, search and sort data (alphabetically) in
ascending order (inOrder traversal)
Class StoreAction: includes information that represents an administrative action
performed in the store, including action ID and action Type.
Class Action Node: includes a StoreAction object and next pointer for linked-list related
data structure.
-
Class Action LogStack: is a stack structure (implemented as a linked list), where the
node contains complete Order data. This Stack is used to manage all the items in LIFO
(Last In - First Out) rule.
Class ComputerStore is the main class of the program, containing:
o An ActionLogStack: manage the working history of the store, such as: buy, ship,
Zoom
+ 100%
Close