Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python, complete the attached code for PART A and PART B. In PART A , the program should display the records that are in

In Python, complete the attached code for PART A and PART B. In PART A, the program should display the records that are in the employees.txt file (please find the text file attached). The output of part A should be the following:

Name: Mike Jones ID: 4587 Dept: Cybersecurity Name: Jane Doe ID: 4588 Dept: Development Name: John Doe ID: 4589 Dept: Advertisement

In PART B, the program should allow the user to search the employees.txt file for records matching an employee name entered by the user. Please see the run sample belows:

Sample Run 1: Enter an employee name to search for: Julia Rich name: Jane Doe ID: 4588 Dept: Development 
Sample Run 2: 
Enter an employee name to search for: Greg Young name: John Doe ID: 4589 Dept: Advertisement 
 

Sample Run 3:

Enter an employee name to search for: Marcus That employee was not found in the file.

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

Step: 3

blur-text-image

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago