File containing tax information (XML)
- min < taxable income <= max
<tax>
<min>0</min>
<max>5</max>
<value>5</value>
</tax>
<tax>
<min>5</min>
<max>10</max>
<value>10</value>
</tax>
...
File containing late coming penalty information (JSON)
{
"min": 0,
"max": 3,
"value": 20000
},
late_comming_days * 20000
- id: Employee ID
- name: Employee name
- salary_base: Basic salary
- working_days: Number of working days in a month
- department: Department ID
- working_performance: Performance coefficient
- bonus: Bonus
- late_comming_days: Number of late coming days
- id: Department ID
- bonus_salary: Department bonus
- Display all menu functions
- Add, edit, and delete employee functions
- Display employee salary function
1. Display employee list.
2. Display department list.
3. Add new employee.
4. Delete employee by ID.
5. Delete department by ID
6. Display salary table.
7. Exit.
Enter your desired function:
This function displays the information of all employees in the system, in the following format:
----
ID: NV001
Department ID: SALE001
Position: Employee
Name: Nguyen Van A
Basic Salary: 200,000 (VND)
Working Days: 26 (days)
Performance Coefficient: 1
Bonus: 500,000 (VND)
Late Coming Days: 2
----
This function displays the list of all departments in the system, in the following format:
----
Department ID: SALE01
Department Bonus: 500,000 (VND)
----
This function allows users to add a new employee to the system. Users will be prompted to enter the following information:
----
Add new employee...
Enter employee ID: 'NV002'
Enter department ID: 'SALE002'
Enter position (NV / QL): 'NV'
Enter name: 'Nguyen Van B'
Enter basic salary: '300000'
Enter working days: '25'
Enter performance coefficient: '0.8'
Enter bonus: '0'
Enter late coming days: '0'
Added new employee...
----
Department ID does not exist, creating new department...
Enter department bonus: 100000
Created new department...
Added new employee...
This function allows users to delete an employee by entering their ID.
----
Enter employee ID to delete: 'NV001'
Deleted successfully
----
This function is similar to "Delete Employee by ID", but for deleting departments.
This function displays the salary of all employees in the system, in the following format:
----
ID: NV001
Actual Income: 4,961,880 (VND)
----
This function exits the program.
Users can enter the ID of the employee they want to edit, and then enter the new values for the employee's information.
----
Edit employee
Enter employee ID: 'NV002'
Enter name:...
Enter position (NV / QL):...
Enter basic salary:...
Enter working days:...
Enter performance coefficient:...
Enter bonus:...
Enter late coming days:...
Editing complete
----