Question
CREATE A PYTHON 3 PROGRAM TO READ A TEXT FILE WITH EMPLOYEE DATA AND ACCESS IT USING NAME!( the data will be separated by symbol=|)
CREATE A PYTHON 3 PROGRAM TO READ A TEXT FILE WITH EMPLOYEE DATA AND ACCESS IT USING NAME!( the data will be separated by symbol="|")
FOR EXAMPLE DATA WILL BE IN THIS FORMAT:
Jhonson|23|123 new york street
lisa|18|226 California
THEREFORE THE FINAL OUTPUT SHOULD BE LIKE THIS:
ENTER THE NAME YOU WANT TO SEARCH FOR IN THE FILE: Jhonson
success! employee exists in the data and the record is a follows: Jhonson|23|123 new york street.
There also has to be a function that deletes the employee info!
example: ENTER THE NAME OF EMPLOYEE THAT YOU WANT TO DELETE: Lisa
lisa was deleted successfully and the record file was updated! // so at this point if i print the data file then lisa should not appear during file reading!
EDIT: FILE HAS TO BE A TEXT 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