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
To solve this you can use Python which has functionalities to simplify handling files and data manip... View full answer
Get step-by-step solutions from verified subject matter experts
