求如何算出员工的假期,计算规则如下:
Rules for Long Service Leave:
(i)   Only Salaried employees are entitled to Long Service Leave.
(ii)   Long Service Leave is calculated as 6.5 days for each year of working service and is calculated pro-rata. (ie part years should be part of the calculation)
如何创建一个雇员的名单并按照雇员ID大小排序,并且可以实现增加,删除,搜索功能..下面是ASSIGNMENT的一些要求.完整的信息在附件里.求高手帮助!!谢谢!
The aims of this assignment are:
• Use of Java Input and Output classes
• Use of Exceptions
• Sorting
• Arrays of Objects
• Development of user classes
• Use of inheritance and polymorphism
• Use of library classes (Date/Time)
• Use of Model / ViewYou are required to write a project which allows storage and retrieval of information about Employee data. The project is to be done in pairs (Lecture 8-1 on Xtreme Programming). Each partner in the pair must understand all parts of the assignment.
The functionality you are required to provide should include the following:• read data from file and store in the list of employees in ID order (Sorting using the comparable interface)
• display the details of a chosen ID (including Long Service Leave calculations if appropriate);
• provide a search function that allows us to find for example, all Salaried Employees (or other) in the database.
display a complete list of the employees with their pay for this week, long service leave entitlements and total pay for all employees.
• handle errors gracefully.
Further requirements :
All I/O from keyboard and to screen should be handled in the View class.Rules for Long Service Leave:
(i)   Only Salaried employees are entitled to Long Service Leave.
(ii)   Long Service Leave is calculated as 6.5 days for each year of working service and is calculated pro-rata. (ie part years should be part of the calculation)You will need to use the following classes: Employee class : Data : name, address and employee ID.  Salaried class : Includes name, address, employee ID, salary.PartTime class : Includes name, address, employee ID, no of hours worked, 
  and hourly rate. Any hours over 38 should be considered as
   overtime at time-and-a-half.Volunteer class: Includes name, address and employee ID. Represents an 
  employee who works as a volunteer and gets paid nothing.EmployeeList class A class to hold all Employees. Similar to Friends class
   developed in Week 7, 10.EmpFileReader class :  As implemented in Week 11. 
Sample data is on the webct.Each line of the data file represents either an entry of Salaried, Volunteer or PartTime employee (each detail separated by ;).
The format for a Part Time Employee will be :
Name; address; employee id; pay rate; number of hours worked
The format for a Salaried Employee will be :
Name; address; employee id; salary; start date (in form dayno/monthNo/year)
The format for a Volunteer Employee will be :
Name; address; employee idYou may assume all data on file is valid. Copy this file to your workarea. You should add to this data to suit your testing.