My data structure assignment about binary search tree.i dunno how to do...
Expand Post »
THis is my assignment question...
______________________________________________________
MyCar Sdn. Bhd. sells new cars. The manager of MyCar wants to develop a system that can do storing, searching, modifying, deleting and printing all information of all selling cars by the company. As a programmer, you are required to develop a system that can do all the operations stated. All the cars information must be stored in a form of binary search tree.
The declaration of nodes for binary search tree that stores data of ‘char’ type is as follows:-
Develop a program that can read the data above from a file and store them in a form of binary search tree. The data must be sorted based on the model of the car. The program must be able to perform the following functions:-
i) InsertItem(ItemType) – To insert cars information into the tree based on model of car
ii) DeleteItem(ItemType) - To delete information from the tree based on model of car
iii) PrintTree() - To display all the information inside the tree
iv) RetrieveItem() - To search and display information based on model of car
Provide menu to select the operations above – (Add, Delete, Search and Display)
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.