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.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 15RQ
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.

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.

 

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

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr