For this assignment, you will continue to use variables, functions, and control structures to improve the "View all Employees" functionality you developed in Week 3 and utilize functions and the passing of parameters to add two new functionalities to your Employee Management System. Update the "View all Employees" functionality you have developed in Week 3 to view the result in the following format: - Mike Smith SSN: 123123123 Phone: 111-222-3333 Email: mike@g'mail.com Salary: $6000 Sara Smith SSN: 123123111 Phone: 111-222-4444 Email: sara@gmail.com Salary: $6500 Now you will continue to employ the list data structure and utilize functions to add the following two new functions: • Search employee by SSN: This functionality makes use of looping and string parsing to search all the employees in the list a returns the information of the employee who has a SSN similar to the one that the user provided. Your system should disp the employee information in the following format: - Mike Smith SSN: 123123123 Phone: 111-222-3333 Email: mike@gmail.com Salary: $6000 Edit employee information: This functionality makes use of the "Search employee by SSN" function first to find the right employee, then it will allow the user to edit the information of the selected user.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
#list
employeeName
[]
employeesSN = []
employeePhone = []
employeeEmail = []
employeeSalary = []
count = 0
while True:
print ("\n---- MENU ----")
print (" (1) Add Employee")
print (" (2) View all Employees")
print (" (0) Quit")
ch = int (input ("Choice: "))
if ch == l1:
print ("Enter Employee Information:")
Name = input ("Name: ")
SSN = input ("SSN: ")
Phone = input ("Phone: ")
Email = input ("Email: ")
Salary = input ("Salary:$ ")
#Adding Employee Information
employeeName.append (Name)
employeesSN.append (SSN)
employeePhone.append (Phone)
employeeEmail.append (Email)
employeeSalary.append (Salary)
count += 1
if ch == 2:
print ("\nThere are (", count ,") employees in the system.")
for i in range (0, count):
print ("\nEmployee", (i+l))
print ("------
-", employeeName [i],
-")
----
print ("SSN: ", employeeSSN[i])
print ("Phone: ", employeePhone [i])
print ("Email:
', employeeEmail[i])
print ("Salary:$ ", employeeSalary[i])
print ("-
-")
---- MENU
----
(1) Add Employee
(2) View all Employees
(0) Quit
Choice: 1
Enter Employee Information:
Name: Caleb McConaughy
SSN: 123123
Phone: (333) 777-6666
Email: Caleb@gmail.com
Salary:$ 5000
Transcribed Image Text:#list employeeName [] employeesSN = [] employeePhone = [] employeeEmail = [] employeeSalary = [] count = 0 while True: print ("\n---- MENU ----") print (" (1) Add Employee") print (" (2) View all Employees") print (" (0) Quit") ch = int (input ("Choice: ")) if ch == l1: print ("Enter Employee Information:") Name = input ("Name: ") SSN = input ("SSN: ") Phone = input ("Phone: ") Email = input ("Email: ") Salary = input ("Salary:$ ") #Adding Employee Information employeeName.append (Name) employeesSN.append (SSN) employeePhone.append (Phone) employeeEmail.append (Email) employeeSalary.append (Salary) count += 1 if ch == 2: print ("\nThere are (", count ,") employees in the system.") for i in range (0, count): print ("\nEmployee", (i+l)) print ("------ -", employeeName [i], -") ---- print ("SSN: ", employeeSSN[i]) print ("Phone: ", employeePhone [i]) print ("Email: ', employeeEmail[i]) print ("Salary:$ ", employeeSalary[i]) print ("- -") ---- MENU ---- (1) Add Employee (2) View all Employees (0) Quit Choice: 1 Enter Employee Information: Name: Caleb McConaughy SSN: 123123 Phone: (333) 777-6666 Email: Caleb@gmail.com Salary:$ 5000
For this assignment, you will continue to use variables, functions, and control structures to improve the "View all Employees"
functionality you developed in Week 3 and utilize functions and the passing of parameters to add two new functionalities to
your Employee Management System.
Update the "View all Employees" functionality you have developed in Week 3 to view the result in the following format:
- Mike Smith
SSN: 123123123
Phone: 111-222-3333
Email: mike@g'mail.com
Salary: $6000
Sara Smith
SSN: 123123111
Phone: 111-222-4444
Email: sara@gmail.com
Salary: $6500
Now you will continue to employ the list data structure and utilize functions to add the following two new functions:
• Search employee by SSN: This functionality makes use of looping and string parsing to search all the employees in the list a
returns the information of the employee who has a SSN similar to the one that the user provided. Your system should disp
the employee information in the following format:
- Mike Smith
SSN: 123123123
Phone: 111-222-3333
Email: mike@gmail.com
Salary: $6000
Edit employee information: This functionality makes use of the "Search employee by SSN" function first to find the right
employee, then it will allow the user to edit the information of the selected user.
Transcribed Image Text:For this assignment, you will continue to use variables, functions, and control structures to improve the "View all Employees" functionality you developed in Week 3 and utilize functions and the passing of parameters to add two new functionalities to your Employee Management System. Update the "View all Employees" functionality you have developed in Week 3 to view the result in the following format: - Mike Smith SSN: 123123123 Phone: 111-222-3333 Email: mike@g'mail.com Salary: $6000 Sara Smith SSN: 123123111 Phone: 111-222-4444 Email: sara@gmail.com Salary: $6500 Now you will continue to employ the list data structure and utilize functions to add the following two new functions: • Search employee by SSN: This functionality makes use of looping and string parsing to search all the employees in the list a returns the information of the employee who has a SSN similar to the one that the user provided. Your system should disp the employee information in the following format: - Mike Smith SSN: 123123123 Phone: 111-222-3333 Email: mike@gmail.com Salary: $6000 Edit employee information: This functionality makes use of the "Search employee by SSN" function first to find the right employee, then it will allow the user to edit the information of the selected user.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 6 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY