Using Java,
Load the data provided below as text file using binary treealgorithm.
Create two methods, remove, and search, of a binary searchtree.
The search method shall allow a search by salary. It shoulddisplay the matched salary and the associated name. Otherwisereturn not found message.
The delete method shall delete the object that matched thesearch criteria, search by name.
Name | Salary |
Betty | 44000 |
Bob | 48000 |
Dilbert | 98000 |
Joseph | 22300 |
Nathan | 90000 |
Sally | 91000 |
Sam | 87000 |
Susan | 8900 |
Veronica | 150000 |
Expert Answer
Answer to Using Java, Load the data provided below as text file using binary tree algorithm. Create two methods, remove, and searc…