java工资纳税系统 c排班系统 程序代码
package test;import javax.swing.JOptionPane;public class SalaryTax {/*** @param args* @return */public static void main(String[] args) {// TODO Auto-generated stubdouble r,s;String Value=JOptionPane.showDialog(“欢迎使用工资纳税系统!\n请输入您要计算的工资“);s=Integer.parseInt(Value);r=s-1600;if(s100000) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax9(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else if(r80000) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax8(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else if(r60000) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax7(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else if(r40000) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax6(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else if(r20000) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax5(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else if(r5000) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax4(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else if(r2000) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax3(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else if(r500) JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax2(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);else JOptionPane.showMessageDialog(null,“您的纳税金额为“ +Pay.tax1(r),“工资纳税系统“,JOptionPane. INATION_MESSAGE);}static class Pay{static double tax1(double a){double pay1;pay1=a*0.05;return(pay1);}static double tax2(double b){double pay2;pay2=500*0.05+(b-500)*0.1;return(pay2);}static double tax3(double c){double pay3;pay3=500*0.05+1500*0.1+(c-2000)*0.15;return(pay3);}static double tax4(double d){double pay4;pay4=500*0.05+1500*0.1+3000*0.15+(d-5000)*0.2;return(pay4);}static double tax5(double e){double pay5;pay5=500*0.05+1500*0.1+3000*0.15+15000*0.2+(e-20000)*0.25; return(pay5);}static double tax6(double f){double pay6;pay6=500*0.05+1500*0.1+3000*0.15+15000*0.2+20000*0.25+(f-40000)*0.3; return(pay6);}static double tax7(double g){double pay7;pay7=500*0.05+1500*0.1+3000*0.15+15000*0.2+20000*0.25+20000*0.3+(g-60000)*0.35;return(pay7);}static double tax8(double h){double pay8;pay8=500*0.05+1500*0.1+3000*0.15+15000*0.2+20000*0.25+20000*0.3+20000*0.35+(h-80000)*0.4;return(pay8);}static double tax9(double i){double pay9;pay9=500*0.05+1500*0.1+3000*0.15+15000*0.2+20000*0.25+20000.3+20000*0.35+20000*0.4+(i-100000)*0.45;return(pay9);}}}package test;import java.util.Scanner;public class TurnRelax {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated stubint k=0,j=0;int choice[]=new int[j];String[] name={“赵“,“钱“, “孙“,“李“,“周“,“吴“ ,“陈“};Person per[]=new Person[7];Scanner reader=new Scanner(System.in);System.out.println(“=======================欢迎进入排班系统=======================“);for(int i=0;i0)choice[per[k].day[k]]++;k++;}while (per[k].day[k-1]=0 int day[7];};void my(struct people *q);void myfuny(struct people *t); main(){ struct people guard[7]={“赵“,{0},“钱“,{0},“ 孙“,{0},“ 李 “,{0},“周“,{0},“吴“,{0},“ 陈“,{0}};myinp