DoubleSfgz, SL, SSKCS, YFGZ,A,YJS;//salary should be paid (basic salary), tax rate, calculator deduction, salary should be issued, judge the standard, pay the amount of tax//double QZD = 3500;//It's useless to start a levy.Console.Write ("Please enter your salary number:"); Yfgz=convert.todouble (Console.ReadLine ()); //(Salary payable-3500) * Tax rate-Calculator deduction = How much tax should be paid//<=1500 3% 0//1500<a<=4500 10%//4500<a<=9000 20% 555//9000<a<=35000 25% 1005//35000<a<=55000 30% 2755//55000<a<=80000 35% 5505//80000<a 45% 13505a=yfgz-3500; if(yfgz>=3500) { if(a<= the) {SL=0.03; SSKCS=0; YJS= (Yfgz-3500) * SL-Sskcs; Console.WriteLine ("The taxes you pay are:"+YJS); Sfgz= Yfgz +YJS; Console.WriteLine ("Your salary payable is:"+sfgz); } Else if(a> the&&a<=4500) {SL=0.1; SSKCS= the; YJS= (Yfgz-3500) * SL-Sskcs; Console.WriteLine ("The taxes you pay are:"+YJS); Sfgz= Yfgz +YJS; Console.WriteLine ("Your salary payable is:"+sfgz); } Else if(A >4500&& a <=9000) {SL=0.2; SSKCS=555; YJS= (Yfgz-3500) * SL-Sskcs; Console.WriteLine ("The taxes you pay are:"+YJS); Sfgz= Yfgz +YJS; Console.WriteLine ("Your salary payable is:"+sfgz); } Else if(A >9000&& a <=35000) {SL=0.25; SSKCS=1005; YJS= (Yfgz-3500) * SL-Sskcs; Console.WriteLine ("The taxes you pay are:"+YJS); Sfgz= Yfgz +YJS; Console.WriteLine ("Your salary payable is:"+sfgz); } Else if(A >35000&& a <=55000) {SL=0.3; SSKCS=2755; YJS= (Yfgz-3500) * SL-Sskcs; Console.WriteLine ("The taxes you pay are:"+YJS); Sfgz= Yfgz +YJS; Console.WriteLine ("Your salary payable is:"+sfgz); } Else if(A >55000&& a <=80000) {SL=0.35; SSKCS=5505; YJS= (Yfgz-3500) * SL-Sskcs; Console.WriteLine ("The taxes you pay are:"+YJS); Sfgz= Yfgz +YJS; Console.WriteLine ("Your salary payable is:"+sfgz); } Else if(A >80000) {SL=0.45; SSKCS=13505; YJS= (Yfgz-3500) * SL-Sskcs; Console.WriteLine ("The taxes you pay are:"+YJS); Sfgz= Yfgz +YJS; Console.WriteLine ("Your salary payable is:"+sfgz); } } Else{Console.WriteLine ("you don't have to pay taxes! "); }
2016.4.16 Lonely Nightingale Editor
VS Application Templates The calculation of taxes and real wages