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.
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.
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
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images