Question: This program must be written in Python. Please provide all the sections of the assignment. Here is the Functionality 3 program. You can change the

This program must be written in Python. Please provide all the sections of the assignment.

Here is the Functionality 3 program. You can change the program to ensure it works

Employees = []

count = 0

def Add_Employee():

global count

Employee=[]

count+=1

print("Enter the name of the employee : ",end=" ")

Employee.append(input())

print("Enter the SSN of the employee : ",end=" ")

Employee.append(input())

print("Enter the Phone of the employee : ",end=" ")

Employee.append(input())

print("Enter the Email of the employee : ",end=" ")

Employee.append(input())

print("Enter the Salary of the employee : ",end=" ")

Employee.append(input())

Employees.append(Employee)

#function for viewing details of employee

def view_all_Employees():

for i in Employees:

print("Name :",i[0])

print("SSN :",i[1])

print("Phone:",i[2])

print("Email :",i[3])

print("Salary:",i[4])

print("NO of employees in the company is",count)

#menu for entering the details

while(True):

print("Enter -1 to Exit ")

print("Enter 1 to add employee")

print("enter 2 to view all employees")

a=int(input())

if(a==-1):#if user input is -1 loop exits

break

elif(a==1):#if user input is 1 then we add an employee

Add_Employee()#calling function

elif(a==2):#if user input 2 then view All employee details

view_all_Employees()#calling the function

else:

print("invalid output")#if user input is else then display invalid output

Here is the new assignment

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@

Salary: $6000

------------------------------------------------------------------------

---------------------------- Sara Smith -----------------------------

SSN: 123123111

Phone: 111-222-4444

Email: sara @

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 and returns the information of the employee who has a SSN similar to the one that the user provided. Your system should display the employee information in the following format:

---------------------------- Mike Smith -----------------------------

SSN: 123123123

Phone: 111-222-3333

Email: mike @

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.

Once you have completed Functionality 4, you must provide the following in a Word document and submit it through the Waypoint grading system:

  • One screen shot of each completed functionality.
  • An explanation of how variables, functions, and control structures were used to improve the View all Employees functionality to view results in the format provided.
  • An explanation of how you employed the list data structure to add the two new functions, Search employee by SSN and Edit employee information.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!