Question: Create a program that i ) asks the user to enter a phone or a name, ii ) searches the directory, and iii ) reports

Create a program that i) asks the user to enter a phone or a name, ii) searches the directory,
and iii) reports the found entries. The above process continues in a loop until cancelled.
The dialog could be as follows:
Enter a phone or a name
to search for:John
John 11111
Enter a phone or a name
to search for:11111
John 11111
Sara 11111
Enter a phone or a name
to search for:Nick
Nick 22222
Nick 33333
Enter a phone or a name
to search for:Cancelled

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!