A file contains a list of telephone number in following form.        Aman 23456        Raj 567854       ...... .... Assume 10 such entries.   Name contains only one word and name and telephone number are separated by 5 white spaces.  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.

icon
Related questions
Question

Q1:-A file contains a list of telephone number in following form.

       Aman 23456

       Raj 567854

      ...... ....

Assume 10 such entries.

  Name contains only one word and name and telephone number are separated by 5 white spaces. 

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.

For Code, use C++ only.

NOTE:- Please Solve this question , it's my humble request to you.. please

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer