Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started