Question: Binary Search Tree - BST You will create a Binary Search Tree class to store the objects of Person class. The Person class should be
Binary Search Tree - BST You will create a Binary Search Tree class to store the objects of Person class. The Person class should be defined with following data members Fist_name Last_name City Phone Email At the start, your program should read the Persons data from the provided text file, and insert this data into the BST according to the email field of persons data. After insertion, your program should present the search options and if found display the details. Search by email Find the record with matching email as input by user, and display its details Search by city Search all the records with city name as input by user, and display all matching records with complete details Provided Data file: The text file provided along with this assignment contains information for 500 persons. The information for each person is first name, last name, company name, city, phone, email. Information for each person takes one line, and information in a line is separated by a tab (\t)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
