Problem of the Day
A new programming or logic puzzle every Mon-Fri

Thanksgiving

For those in the states, happy Thanksgiving!

In honor of Thanksgiving, today's problem will be a phone number database. Your text file will read in a name and a phone number to associate with that name. The program then asks for an input. The input can either be an exact match on a name or a partial match on a phone number. Examples below:

Sample Input

mom 4078239999
dad 4079923456
sis 4078961324

Sample Output

mom
>> mom 4078239999

99
>> mom 4078239999
>> dad 4079923456

Permalink: http://problemotd.com/problem/thanksgiving/

Comments:

  • There are currently no comments. You can be first!

Content curated by @MaxBurstein