VF编程求个人所得税

来源:百度知道 编辑:UC知道 时间:2024/05/26 11:29:56
VF编程求个人所得税 月工资<1600 不交 1600 >=月工资<2100 交5% 2100>月工资<3600 交10% 3600>月工资<6600 交15% 6600>月工资<21600交20%

如果这个题是在表格里的话叫你求个人所得税的话,可以用updata 的更新语句啊,如:第一个月工资<1600 不交,用update 个人所得税 set 个人所得税=月工资*0 where 月工资<1600,剩下的语句只要把set 后面的语句改一下就行了,如月工资在1600到2100之间的,就用set 个人所得税=月工资*0.05 where 月工资>=1600 and 月工资<2100.剩下的就这样改就照了

repl 税率 with 0 for 月工资<1600
repl 税率 with 5 for 月工资>1600 and 月工资=<2100
repl 税率 with 10 for 月工资>2100 and 月工资=<3600
repl 税率 with 15 for 月工资>3600 and 月工资=<6600
repl 税率 with 20 for 月工资>6600 and 月工资=<21600

可是你的标准是过时的啦