编写一个程序实现小型公司的人员信息管理系统。该公司雇员(employee)包括经理(manager),技术人员(technician)、销售员(salesman)和销售部经理(salesmanager)。要求存储这些人员的姓名、编号、级别、当月薪水,计算月薪并显示全部信息。
程序要对所有人员有提升级别的功能。为简单起见,所有人员的初始级别均为1,然后进行升级,经理升为4级,技术人员和销售部经理升为3级,销售员仍为1级。
月薪计算办法是:经理拿固定月薪8000元,技术人员按每小时100元领取月薪,销售员按该当月销售额4 提成,销售经理既拿固定月工资也领取销售提成,固定月工资为5000元,销售提成为所管辖部门当月销售额的5‰。
(Write a program to implement the personnel information management system of small company. The company employees (employee) including managers (manager), technical personnel (technician), salesman (salesman) and the sales manager (salesmanager). For store the personnel s name, serial number, level, monthly salary, calculate monthly salary and display all the information.
Program for all personnel have the function of level. For the sake of simplicity, all staff of the initial level 1, and then upgrade, manager promoted to level 4, technicians and sales manager for level 3, the salesperson is still the 1st level.
Monthly salary calculation way is: managers with a fixed monthly salary of 8000 yuan, technicians receive monthly salary 100 yuan per hour, the salesman make the monthly sales 4 commission, sales manager with both fixed monthly salary also receive sales commissions, fixed monthly salary of 5000 yuan, sales to become the jurisdiction of the department of sales that month 5 ‰.)