文件名称:Pay-of-employees
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-12-07
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- l**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
1. 一个计算费用的抽象类GetFee,其中有计算费用的抽象方法getFee() 一个计算费用的具体类Fee, 实现抽象方法getFee(),费用=收入*费率,不同员工的收入计算方法不同,费率不同,但费率是固定的 一个员工接口Clerk,其中有getIncome()抽象方法;一个教授实现类Professor,其中有getIncome()方法的实现,教授的收入=工资+奖金+导师费用;一个讲师实现类Lecture, 其中有getIncome()方法的实现,讲师的收入=工资+奖金;一个测试类Test。要求输出:员工,教授,张三,工资3000元,奖金500元,导师费用100元,费率2 ,交费72元,已累计交费72元,员工已累计交费72元。员工,讲师,李四,工资2000元,奖金400元,费率1 ,交费24元,已累计交费24元,员工已累计交费96元。-The 1. Costing abstract class GetFee, which costed abstract method getFee () a calculation of the costs of specific class Fee abstract methods getFee (), expenses = income* rate, the income of employees calculated in different ways different rates, but the rates are fixed a staff interface Clerk, which the getIncome () abstract method a class Professor, Professor, which getIncome () method implementation, Professor income = wages+ bonus+ tutor costs of a lecturer implementation class Lecture, which getIncome () method implementation, lecturers income = wages+ bonus a test class Test. Requirements output: employees, professors, Joe Smith, wages of 3,000 yuan, 500 yuan bonus, tutor costs $ 100, the rate of 2 , and paid 72 yuan, has accumulated to pay 72 yuan, employees have accumulated to pay 72 yuan. Staff, lecturer, John Doe, wages of 2,000 yuan, 400 yuan bonus rate of 1 , and paid 24 yuan, has accumulated to pay 24 yuan, the staff has accumulated to pay 96 yuan.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
员工费用问题\Clerk.java
............\Fee.java
............\GetFee.java
............\Lecture.java
............\Professor.java
............\Test.java
员工费用问题