A File contains a list of names and telephone numbers in the following form: AJIT 281050 ANIL 462890 HRISHIKESH 524358 ---- ---- ...

A File contains a list of names and telephone numbers in the following form:

AJIT 281050
ANIL 462890
HRISHIKESH 524358
----
----

The names contains only one word and the telephone numbers are separated by white spaces.

Write an interactive program to:

  1. Create the above file.
  2. Display the contents in two columns.
  3. Search a telephone number for a given name.
  4. Exit the program.

Have something to say? Log in to comment on this post.

0 comments