Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON Write a program that queries information from three files(given to you). The first file contains the names and telephone numbers of a group of

PYTHON

Write a program that queries information from three files(given to you). The first file contains the names and telephone numbers of a group of people. The second file contains the names and Social Security numbers of a group of people. The third file contains the names and annual income of a group of people. The groups of people should overlap. Your program should ask the user for a telephone number and then print the name, Social Security number, and annual income, if it can determine that information.

You must have at least two functions other than the main function in your program.

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

sample run:

Enter the phone number (7 digits, with a dash): 000-1234

555-1234 is associated with Luke

Luke's SSN is 000000003

Luke's salary is 65000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

Students also viewed these Databases questions

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

b. What are its goals and objectives?

Answered: 1 week ago