A file contains a list of telephone number in following form.(10 Marks)
Aman 9915336423
Raj 9915336429
….. ……….
Assume 10 such entries. ( Each students entry should be different)
Name contains only one word and name and telephone number are separated by 5 white spaces.
i) Write a program to read the file and output the list in two columns. Name should be left justified
and number should be right justified.
ii) Write a program that will create the data file containing the list of telephone number given in
above form. Use a class object to store each set of data.
iii) Write a interactive menu driven program that will access the file created in first part and implement
the following task.
a) Determine the telephone number of specific person.
b) Determine the name if a telephone number is known.
c) Update the telephone number when there is a change in telephone number
Comments
Leave a comment