Question: *PYTHON* Write a program that queries information from three files. The first file (data1.txt) contains the names and telephone numbers of a group of people.

*PYTHON* Write a program that queries information from three files. The first file (data1.txt) contains the names and telephone numbers of a group of people. The second file (data2.txt) contains the names and Social Security numbers of a group of people. The third file (data3.txt) contains the Social Security numbers and annual incomes of a group of people. The groups of people should overlap but need not be completely identical. Your program should ask the use for a telephone number and then print the name, Social Security number, and annual income, if it can determine that information.

data1.txt:

Bob, 555-1234 Matthew, 555-2345 Mark, 555-3456 Luke, 000-1234 John, 000-2345

data 2.txt:

Matthew, 000000001 Mark, 000000002 Luke, 000000003 Joe, 000000004

data3.txt:

000000001, 55000 000000003, 65000 000000004, 70000 000000007, 10000000

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!