Question: This program must be written in Python. I have added the programs for functionality 1 and 2 at the bottom. Utilize looping to make your

This program must be written in Python. I have added the programs for functionality 1 and 2 at the bottom.

Utilize looping to make your Python script for Functionality 2 (developed in Week 2) to run constantly.

Separate Functionality 1 (developed in Week 1) into the following two functionalities:

Add Employee this functionality will allow users to add new employee to the system.

View all Employees this functionality will view all employees in the system.

Use global variables to develop a counter to keep track of the number of employees in the system. A good employee management system should always give brief information about the existing number of employees. This counter can be shown to the user when they run the script as the following message:

There are (3) employees in the system. Once you have completed Functionality 3, you must provide the following in a Word document and submit it through the Waypoint grading system:

Functionality 1 program (must be able to add employees and view employees for new program)

#read input using input() function,

employeeName = input("Enter employee name: ")

employeeSSN = input("Enter employee SSN: ")

employeePhone = input("Enter employee phone: ")

employeeEmail = input("Enter employee email: ")

employeeSalary = input("Enter employee salary: ")

print("----------------------------"+employeeName+"-----------------------------")

print("SSN: "+employeeSSN)

print("Phone: "+employeePhone)

print("Email: "+employeeEmail)

print("Salary: "+employeeSalary)

print("----------------------------------------------------------------------------")

Functionality 2 program (can be changed, didn't work too good, MUST ADD LOOPING TO MAKE RUN CONSTANTLY)

a = []

for i in range(5):

print(f"Enter details for employee {i+1}: ")

rowarr = []

for j in range(5):

if j==0:

row = input('Enter employeeName: ')

rowarr.append(row)

if j==1:

row = input('Enter employeeSSN: ')

rowarr.append(row)

if j==2:

row = input('Enter employeePhone: ')

rowarr.append(row)

if j==3:

row = input('Enter employeeEmail: ')

rowarr.append(row)

if j==4:

row = input('Enter employeeSalary: ')

rowarr.append(row)

a.append(rowarr)

x = input("Enter employee index to get details: ")

for i in range(5):

print(a[index-1][i], end=", ")

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!