欢迎来到天天文库
浏览记录
ID:41972022
大小:95.50 KB
页数:7页
时间:2019-09-05
《java工资纳税系统c排班系统程序代码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、packagetest;importjavax.swing.JOptionPane;publicclassSalaryTax{/***@paramargs*^return*/publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubdoubleStringinputValue=30ptionPane.s/7Ok/InputDiatog("欢迎使用工资纳税系统!请输入您要计算的工资“);s=Intege”・卩(7厂3£17?£(inputvalue);r=s-1600;if(s<0)30
2、ptiorPare.sho^MessageDiaLog(null,"X资应不小于0!"X资纳税系统”,DOptionPane.ERROR_MESSAGE);elseif(r<=0)3OptionPane.s/7Ow/v/essageDiaLog(null>"您不用纳税!”工资纳税系统”,DOptionPane・INFORMATION_MESSAGE);elseif(r>100000)JOptionPane.s/?otvA/essageDiaLog(null"您的纳税金额为"+Pay.tax9(r)”工资纳税系统"^JOptionPane.INFORMATI
3、ON_MESSAGE);elseif(r>80000)3OptionPane.s/?otvMess(7geDi(7Log(null"您的纳税金额为”+Pay・tax8(r),”工资纳税系统JOptionPane.INFORMATION_MESSAGE);elseif(r>60000)30ptiorPane.sho^MessageDiaLog(null"您的纳税金额为"+Pay.tax7(r)>”工资纳税系统'^JOptionPane.INFORMATION_MESSAGE);elseif(r>40000)30ptionPane.show/v?essageDi
4、atog(null>"您的纳税金额为"+Pay.tax6(r)?”工资纳税系统H,JOptionPane.INFORMATION_MESSAGE);elseif(r>20000)JOptionPane.shoressageDiaLog(null"您的纳税金额为"+Pay.tax5(r)”工资纳税系统"?DOptionPane.INFORMATION_MESSAGE);elseif(r>5000)JOptionPane.shoiA/MessageDiaLogCnull^"您的纳税金额为"+Pay.tax4(r)?”工资纳税系统”,JOptionPane.INFO
5、RMATION_MESSAGE);elseif(r>2000)3OptionPane.s/?oh/AlessageDiaLog(null,"您的纳税金额为"+Pay.taxS(r)4“工资纳税系统"^OptionPane.INFORMATION_MESSAGE);elseif(r>500)30ptionPane.s/?ok/MessageDiaLog(nullJ"您的纳税金额为"+Pay.tax2(r)”工资纳税系统".DOptionPane.INFORMATION_MESSAGE);else30ptionPane.s/?ou/Mess(7geDi(7Log(
6、null>"您的纳税金额7j"+Pay.taxi(r),”工资纳税系统“jJOptionPane.INFORMATION_MESSAGE);}staticclassPay{static:doubletaxl(doublea){doublepayl;payl=a*0.05;return(payl);}staticdoubletax2(doubleb){doublepay2;pay2=500*0.05+(b-500)*0.1;return(pay2);}staticdoubletax3(doublec){doublepay3;pay3=500*0.05+1500*
7、0.l+(c-2000)*0.15;return(pay3);}staticdoubletax4(doubled){doublepay4;pay4=500*0.05+1500*0.1+3000*0.15+(d-5000)*0.2;return(pay4);}staticdoubletax5(doublee){doublepay5;pay5=500*0.05+1500*0.1+3000*0.15+15000*0.2+(e-20000)*0.25;return(pay5);}staticdoubletax6(doublef){doublepay6;pay6=500
8、*0.05+1500*0・1+3000
此文档下载收益归作者所有