☑Kizspy.me
===========
The given files already contain statements to implement a program for managing a convenient
store. The structure of the main classes is as follows:
-
Class Cargo: contains information about a Cargo object, including id, name, and price.
Class Node: includes a Cargo object and a next pointer for linking.
Class TreeNode: includes a Cargo object and left, right pointers for tree structure.
Zoom
Class OrderQueue: is a queue structure (implemented as a linked list), where the nodes
contain Cargo objects. This Queue is used to manage all the Cargos with FIFO (First In -
First Out) rule.
Class Cargo Tree: is a Binary Search Tree structure, where the nodes also contain Cargo
objects. This Tree's role is to store, search and sort data (alphabetically) in ascending order
(inOrder traversal)
Class ConvenientStore: is the main class of the program, containing an OrderQueue and
a Cargo Tree.
Students are required to carefully read the provided code segments to fully understand the
relationships between the classes and the functions within each class. The specific task of the test
is to execute the following requirements:
+ 100%
Close