Question: Write a program that reads phone directory records from a text file. Each line in the text file represents a record composed of a first

Write a program that reads phone directory records from a text file. Each line in the text file represents a record composed of a first name, a last name, and a phone number separated by spaces. Your program should remove all duplicate records, and output two new text files:

a) A phone directory sorted by phone numbers.

b) A phone directory alphabetically sorted in the format: last name, first name.

Step by Step Solution

3.48 Rating (158 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this you can use Python which has functionalities to simplify handling files and data manip... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java How To Program Late Objects Questions!