CISC 3115
Introduction to Modern Programming Techniques
Phonebook
Version 0 - Simple Baseline

Phonebook Version 0 - Simple Baseline (Phonebook)

Given the file, "phonebook.text" containing phone entries in the format last-name phone-number, write an application that allows the user to look up a phone number via the last name. You can assume no two entries have the same last name.

Sample Test Run

For example if the file phonebook.text cntains:

Arnow       123-456-7890
Harrow      234-567-8901
Jones       345-678-9012
Augenstein  456-789-0123
Sokol       567-890-1234
Tenenbaum   678-901-2345
Weiss       789-012-3456
Cox         890-123-4567
Langsam     901-234-5678
Thurm       012-345-6789
here is a sample execution of the program:
name? Weiss
789-012-3456
name? Arnow
123-456-7890
name? Washington
Not found
name? Jones
345-678-9012
name? Thrum
Not found
name? Thurm
012-345-6789
name?

Files Used in this Example