Question
Week 5 - Final Project Employee Management System Project The Final Project for this course is an accumulation of previous weeks assignments in which you
Week 5 - Final Project
Employee Management System Project
The Final Project for this course is an accumulation of previous weeks assignments in which you will utilize all of the skills you have acquired in this course to develop an employee management system using Python programming language. In each week of the course, you created various functionalities of an employee management system. Now you will combine all the functionalities you have developed into one single application.
Your work will reflect on what you have learned about computer programming during this course, including topics such as variables and expressions, data type and branching, loops and functions, list and dictionary, exception and files.
You must include the following components in your Employee Management System:
Employee Management System Functionality 1
In Week 1, you developed the first functionality for the employee management system. You wrote a Python script to allow users to enter the following string values: employeeName, employeeSSN*, employeePhone, employeeEmail, and employeeSalary.
To complete this section, incorporate the instructor feedback you received for your Week 1 Assignment and provide an updated screen shot of this functionality, along with the description of the functionality.
Employee Management System Functionality 2
In Week 2, you developed the second functionality of the employee management system in which you allowed users to enter information for five employees at the same time.
To complete this section, incorporate the instructor feedback you received for your Week 2 Assignment and provide an updated screen shot of this functionality, along with the description of the functionality.
Employee Management System Functionality 3
In Week 3, you developed the third functionality of the employee management system. You made use of looping to allow your Python script to run constantly. You then separated functionality 1 into two functionalities Add Employee and View all Employees. Finally, you utilized global variables to develop a counter that keeps track of the number of employees in the system.
To complete this section, incorporate the instructor feedback you received for your Week 3 Assignment and provide an updated screen shot of this functionality, along with the description of the functionality.
Employee Management System Functionality 4
In Week 4, you developed the fourth functionality of the employee management system. You improved the View all Employees functionality that was developed in Week 3 and added two new functionalities to your employee management system Search employee by SSN and Edit employee information.
To complete this section, incorporate the instructor feedback you received for your Week 4 Assignment and provide an updated screen shot of this functionality, along with the description of the functionality.
Employee Management System Functionality 5
In Week 5, you added two new functionalities to your Employee Management System Export employees information to text file and Import employees information from text file.
To complete this section, incorporate the peer and/or instructor feedback you received for the two new functionalities. Provide an updated screen shot of this functionality and the description of the functionality.
Final Deliverable
You will now combine all the functionalities you have developed into one single application. Explain the steps you took to combine all of the functions into one single application, and provide a screen shot of the final Employee Management System.
The end product should look similar to the following:
------------------------ Employee Management System ---------------------------
There are ( 5 ) employees in the system.
-------------------------------------------------------------------------------------------
- Add new employee
- View all employees
- Search employee by SSN
- Edit employee information
- Export employees information into a text file
- Import employees information from a text file
-------------------------------------------------------------------------------------------
Please enter your option number:
Once you have completed the Employee Management System, you must provide the following in a Word document and submit it through the Waypoint grading system:
- Screenshots of all of the functionalities of the Employee Management System, along with their descriptions.
- An explanation of the steps you took to combine all of the functions into one single application.
- A brief description of the purpose of the Employee Management System.
- The script for the final Employee Management system.
I am a beginner level: here is the code I have. Please fix import, export, search, and update employee information.
employeeDatabase = [] employeeSSN = 0 employeeIndex = 0
def cls(): print(' ' * 0)
def mainMenu(): print("------------------------- Welcome ------------------------ ") print("---------------- Employee Management System ----------------") print(" There are {0:1d} employee(s) in the system.".format(len(employeeDatabase))) print("-"*60) print('1. Add New Employee') print('2. View all Employees') print('3. Search employee by SSN') print('4. Edit employee information') print('5. Export employees information into a text file ') print('6. Import employees information into a text file ') print('-'*60) try: menuoption = int(input("Please Choose (1)(2)(3)(4)(5)(6): ")) except: print(' ', ("Input is not (1)(2)(3)(4)(5)(6).").center(40, '_'), ' ') print() return 0 print('-'*60) return menuoption
def viewEmployeeInfo(): cls() print(' ', ('All Employees').center(60, '_'), ' ') if (len(employeeDatabase) == 0): print('Sorry but None employees are in the system yet.') print('---------PLEASE TRY TO ADD A NEW EMPLOYEE---------.') print('-'*60) else: for i in range(0, len(employeeDatabase)): line = employeeDatabase[i].split(',') viewEmployeeFormat(line[0],line[1],line[2],line[3], line[4]) input("Please Enter Any Key To Return To The Main Menu.")
def viewEmployeeFormat(name,ssn,phone,email,salary): print('-------------------- {0:s} --------------------'.format(name)) print('SSN: {0:s}'.format(ssn)) print('Phone: {0:s}'.format(phone)) print('Email: {0:s}'.format(email)) print('Salary: ${0:s}'.format(salary)) print('-' * 60) cls()
def employeeInput(): print(' ', ('Add Employee').center(40, '_'), ' ') try: name = input('Enter Employee Name: ') ssn = input('Enter Employee SSN: ') phone = input('Enter Employee Phone: ') email = input('Enter Employee Email: ') salary = input('Enter Employee Salary: ') line = name +"," +ssn +"," +phone +"," +email +"," +salary index = len(employeeDatabase) employeeDatabase.insert(index, line) except: employeeInput() print('_______________Record added to the Data Base_______________.')
try: option = input('Enter [r/R] to return to main menu: Or Any key to Add a new employee ') if option.upper() == 'R': cls() else: cls() employeeInput() except: cls() employeeInput()
def viewAllEmployees(): cls() print(' ', ('All Employees').center(60, '-'), ' ') if (len(employeeDatabase) == 0): print('There are no employees in system.') else: for i in range(0, len(employeeDatabase)): line = employeeDatabase[i].split(',') viewEmployeeFormat(line[0],line[1],line[2],line[3], line[4]) cls() mainMenu() def ssnSearch(toEdit): cls() print(' ', ('Search Employee by SSN').center(60, '-'), ' ') if(len(employeeDatabase) == 0): print('No employees in the list.') cls() else: try: ssn = input('Enter [q/Q] to return to main menu or any key to enter a new SSN:') global employeeSSN employeeSSN = ssn if ssn.upper() == 'Q': return 0 except ValueError: ssnSearch(0) for i in range(0, len(employeeDatabase)): line = employeeDatabase[i].split(',') if (line[1] == ssn): global employeeIndex employeeIndex = i viewEmployeeFormat(line[0],line[1],line[2],line[3], line[4]) break else: print('Record not found with SSN Provided.') print('---------------Please try Again---------------.') print('-' * 60) return 0 try: if (toEdit == 0): option = input('Enter [q/Q] to return to main menu or Any key to search another SSN:') if ssn.upper() == 'Q': cls() else: ssnSearch(0) except: cls()
def editEmployee(): cls() result = ssnSearch(1) if (result != 0): name = input('Enter Employee Name: ') ssn = input('Enter Employee SSN: ') phone = input('Enter Employee Phone: ') email = input('Enter Employee Email: ') salary = input('Enter Employee Salary: ') del employeeDatabase[employeeIndex] line = name +',' +ssn +',' +phone +',' +email +',' +salary employeeDatabase.insert(employeeIndex, line) print('Employee record updated. Enter any key to return to main menu:')
while True: cls() mode = mainMenu() if mode == 1: cls() employeeInput() if mode == 2: cls() viewEmployeeInfo() if mode == 3: cls() ssnSearch(1) if mode == 4: cls() editEmployee()
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