VS Application Templates The calculation of taxes and real wages

Source: Internet
Author: User

 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.