employeemangsystem/check.txt
steven smith,123123133,111-222-4444,[email protected],7000
Sara Smith,123123111,111-222-4444,[email protected],6500
employeemangsystem/e1.PNG
employeemangsystem/e2.PNG
employeemangsystem/e3.PNG
employeemangsystem/e4.PNG
employeemangsystem/e5.PNG
employeemangsystem/employee.py
import sys
employees=[]
def addEmployee():
"""
This function will take employee information from user and store it in employees list
"""
name=input("\nEnter employee name: (Example Mike Smith) ")
ssn=input("\nEnter employee ssn: (Example 123123123) ")
phone=input("\nEnter employee phone: (Example 111-222-3333) ")
email=input("\nEnter employee email: (Example mike@g'mail.com) ")
salary=input("\nEnter employee salary: (Example 6000) ")
employees.append([name,ssn,phone,email,salary])
def viewEmployee():
"""
This function view all employees information employees list
"""
for employee in employees:
print("\n---------------------------- "+employee[0]+" -----------------------------\nSSN: "+employee[1]+"\nPhone: "+employee[2]+"\nEmail: "+employee[3]+"\nSalary: $"+employee[4]+"\n------------------------------------------------------------------------\n")
def searchEmployee():
"""
This function will take ssn information from user and search it in employees list
"""
ssn=input("Enter SSN number: ")
flag=False
for employee in employees:
if employee[1]==ssn:
flag=True
print("\nWe found an employee.Please see the details below\n")
print("\n---------------------------- "+employee[0]+" -----------------------------\nSSN: "+employee[1]+"\nPhone: "+employee[2]+"\nEmail: "+employee[3]+"\nSalary: $"+employee[4]+"\n------------------------------------------------------------------------\n")
if flag==False:
print("\nSorry we are unable to find employee\n")
def...