文件名称:Pay-of-employees
-
所属分类:
- 标签属性:
- 上传时间:2013-01-11
-
文件大小:2.31kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
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
员工费用问题/
员工费用问题/Fee.java
员工费用问题/GetFee.java
员工费用问题/Lecture.java
员工费用问题/Professor.java
员工费用问题/Test.java
员工费用问题/
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.