Question: This is my assignment which the main focus is File IO. Could I get an example of the best implementation to write this program? Write

This is my assignment which the main focus is File IO. Could I get an example of the best implementation to write this program? Write a program that combines a list of friends from multiple people. Bill has a list of friends saved in a file called bill.dat, and Tom has a list of friends saved in a file called tom.dat. The program should be able to display each persons list as well as combine them and save them in a file called billandtom.dat, and display them as well. Your program should use the following menu: Please select an option: 1) Display Bills friends

2) Display Toms friends

3) Combine friends

4) Display combined friends

5) Exit The .dat files should contain the first name and last name of the friend on separate lines. Once the lists have been merged the duplicates should be removed before being save to the combined list. With the attached Bill.dat and Tom.dat files, the combined list should look like so: billandtom.dat Alice Wu

Bill Smith

Donald Hum

Jane Rose

Joe Tanner

John Wallace

Rosie Chan Tom Banks

Wayne Chu

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!