taxSystem.java
资源名称:project4.rar [点击查看]
上传用户:dscysp
上传日期:2021-04-07
资源大小:268k
文件大小:1k
源码类别:
家庭/个人应用
开发平台:
Java
- /**
- * 个人所得税计算系统
- * @author 蒋鹏
- *
- */
- public class taxSystem {
- private taxScale sca;
- private taxCalculate cal;
- public taxSystem()
- {
- sca = new taxScale();
- }
- public taxSystem(taxScale s)
- {
- sca = s;
- }
- /**
- * 调用个人所得税计算器
- */
- public double taxSolve(int income)
- {
- cal = new taxCalculate(income,sca);
- return cal.getTax();
- }
- /**
- * 获得基数
- */
- public int taxGetBase()
- {
- return sca.getBase();
- }
- /**
- * 获得税率表
- */
- public int taxGetScale(int x,int y)
- {
- return sca.getScale(x, y);
- }
- /**
- * 获得税率表级数
- */
- public int taxGetSize()
- {
- return sca.getSize();
- }
- /**
- * 设置基数
- */
- public int taxSetBase(int b)
- {
- sca.setBase(b);
- return 0;
- }
- /**
- * 设置税率表
- */
- public int taxSetScale(int[][] t,int nt)
- {
- sca.setScale(t, nt);
- return 0;
- }
- }