de: class EmployeeInfo: emp_number = 0 emp_last = "" emp_first = "" emp_position = "" emp_department = "" emp_birth = "" emp_RD = 0 emp_NDWM = 0 def add_emp():

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Code:


class EmployeeInfo:
emp_number = 0
emp_last = ""
emp_first = ""
emp_position = ""
emp_department = ""
emp_birth = ""
emp_RD = 0
emp_NDWM = 0


def add_emp():
print("ADD EMPLOYEE");

def update_emp():
print("UPDATE EMPLOYEE");

def increase_pay():
print("INCREASE PAY");

def generate_slip():
print("INCREASE PAY");

def exit_program():
print("INCREASE PAY");



print("1 - ADD EMPLOYEE DATA")
print("2 - UPDATE EMPLOYEE DATA")
print("3 - INCREASE PAY")
print("4 - GENERATE PAY SLIP")
print("5 - EXIT PROGRAM")
print("----------")
userChoice = int(input("Enter Choice: "))


if userChoice == 1:
add_emp()
elif userChoice == 2:
update_emp()
elif userChoice == 3:
increase_pay()
elif userChoice == 4:
generate_slip()
elif userChoice == 5:
exit_program()

ABC Company has five departments namely Accounting, Human Resources, Sales and Marketing,
Manufacturing and Admin. There are four available positions which are manager, assistant manager,
secretary, and staff. Each department must have 1 manager, 1 asst. manager and 1 secretary.
The company store their employee records in text file with the following data: employee number last
name, first name, position, department, birth date, rate per day and num of days worked per month.
Upon employment, employee receives a fixed rate based on position as shown below:
POSITION
RATE
Manager
1000
750
Asst. Manager
Secretary
Staff
500
475
The manager and assist. manager receives an allowance of 5000 and 3000 respectively. The company also
give their employee increase in their salary. Every time the employee receives an increase it is half of the
current rate except for the managers which is double of their rate. The employer may raise the salary of
all the employees or a specific employee. Employer generate pay slip of all employees per month.
Employee may request from his/her employer to generate his/her pay slip for specific month.
Task:
Write a program that will the following features:
1. A menu for adding employee data, updating employee data, increase pay, and generate pay slip.
2. Must create a class for employee which will serve as the base class for manager, asst. manager,
secretary, and staff class
3. Must create class variable and class methods for the operations
4. Must implement OOP concepts (Encapsulation, Inheritance and polymorphism)
Transcribed Image Text:ABC Company has five departments namely Accounting, Human Resources, Sales and Marketing, Manufacturing and Admin. There are four available positions which are manager, assistant manager, secretary, and staff. Each department must have 1 manager, 1 asst. manager and 1 secretary. The company store their employee records in text file with the following data: employee number last name, first name, position, department, birth date, rate per day and num of days worked per month. Upon employment, employee receives a fixed rate based on position as shown below: POSITION RATE Manager 1000 750 Asst. Manager Secretary Staff 500 475 The manager and assist. manager receives an allowance of 5000 and 3000 respectively. The company also give their employee increase in their salary. Every time the employee receives an increase it is half of the current rate except for the managers which is double of their rate. The employer may raise the salary of all the employees or a specific employee. Employer generate pay slip of all employees per month. Employee may request from his/her employer to generate his/her pay slip for specific month. Task: Write a program that will the following features: 1. A menu for adding employee data, updating employee data, increase pay, and generate pay slip. 2. Must create a class for employee which will serve as the base class for manager, asst. manager, secretary, and staff class 3. Must create class variable and class methods for the operations 4. Must implement OOP concepts (Encapsulation, Inheritance and polymorphism)
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
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 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)
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
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY