Question
I need this in PYTHON please. Thank you. If you can please provide screenshot of the execution. If that cant be provided its okay. Write
I need this in PYTHON please. Thank you. If you can please provide screenshot of the execution. If that cant be provided its okay.
Write a telephone lookup program. Read a data set of names and telephone numbers from a file that contains the numbers in random order. Handle lookups by name and also reverse lookups by phone number. Use a binary search for both lookups. Use the following data set:
Bob|555-1234
Joe|555-2345
John|555-3456
Luke|555-4567
Mark|555-5678
Matthew|555-6789
The program should prompt the user as follows:
L)ookup Name, Lookup N)umber or Q)uit?
Enter the name:
Or
Enter the Number:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started