
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
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](https://content.bartleby.com/qna-images/question/e492d983-01cf-4839-a147-7270d871933f/9552ff69-7492-4b5d-9983-3d3da87905d0/hjcszmq_thumbnail.png)
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

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 6 images

Knowledge Booster
Similar questions
- When doing user research, there is no reason not to divide the overall design into a range of different user views; in fact, there is no reason not to do so.arrow_forwardWhen using EntityFramework, what was the purpose of including the model primary key as a hidden input in a Razor Form? Question 1 options: a) To know which operation to execute in the controller (Create or Update) once the form is submitted b) To make formatting the form easier c) to make sure to show the user the primary key of the used model d) None of the answersarrow_forwardI need help making a data flow diagram for the following use cases: Intro/Homepage: This first case will be used to give the user the first look at what the whole project is about. They see the beginning stage and interact with all the links to the movies, characters, and descriptions. Browse MCU Shows: This case will be for the customers and users to be able to navigate through the feature and see what they are specifically. They can use it to find which exact Marvel Cinematic Universe movie/show they wish to watch and see what character they like. View MCU Movie Details: This case will be for users to get more information about specific Marvel movies/shows. It will give more details like the cast, the run time, the review score, the characters involved and etc.arrow_forward
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

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 Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

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
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY