Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Analyse the process of new product of development.

Answered: 1 week ago

Question

Define Trade Mark.

Answered: 1 week ago