Your program will mimic a phone book. You will be given a file. In the file is a set of names and phone numbers (an entry).

education

Description

PROGRAM PARTICULARS 

Your program will mimic a phone book. You will be given a file. In the file is a set of names and phone numbers (an entry). There will be one item per line (field), 3 items per entry(record), you don’t know how many records are in the file. You are guaranteed at least one record.


Your program will be menu driven. 


Your task is to accept a last name, a first name or a phone number from the user and to read through the text file, looking for a match. If match(s) are found, display the information, and then redisplay the menu.


If the entry was not found display the appropriate not found message. All search results will be written to the screen. You are guaranteed that when you ask for input you will get the appropriate type not necessarily within range but the right type. 


INPUT FILE FORMAT 

The input file will contain records. There will be one field per line, all lines in the file end with a carriage return. Here is a sample input file for clarification: 




Related Questions in education category