Calculation of level seven tax

Source: Internet
Author: User
Calculation of level seven tax
Problem description: As of September 1, 2011, China's adjusted personal income tax collection method, starting point for 3500 yuan,
The excess portion is calculated at level 7 below:
1 over 0 to 1500 tax rate 3% calculating quickly deduction number 0
2 part of the tax rate of more than 1500 to 4500 yuan 10% calculating quickly deduction number 105
3 part of the tax rate of more than 4500 to 9000 yuan 20% calculating quickly deduction number 555
4 part of the tax rate of more than 9,000 to 35,000 yuan 25% calculating quickly deduction number 1005
5 part of the tax rate of more than 35,000 to 55,000 yuan 30% calculating quickly deduction number 2755
6 part of the tax rate of more than 55,000 to 80,000 yuan 35% calculating quickly deduction number 5505
7 more than 80,000 of the tax rate 45% calculating quickly deduction 13505
Personal income tax = (total income-3500) * tax rate-calculating quickly deduction

Program output: Tax payable and after-tax income


* * * Seven tax rate problem Description: According to the adjustment of the personal income tax in China from September 1, 2011, the starting point is 3500 yuan, * The above part according to the following 7 level calculation: * 1 over 0 to 1500 tax rate 3% calculating quickly deduction 0 * 2 more than 1500 to 4 Part of the tax rate of 500 yuan 10% calculating quickly deduction 105 * 3 more than 4500 yuan to 9000 yuan part of the tax rate 20% calculating quickly deduction 555 * 4 more than 9,000 yuan to 35,000 yuan part of the tax rate 25% calculating quickly deduction Number 10  05 * 5 of the tax rate of more than 35,000 to 55,000 yuan 30% calculating quickly deduction 2755 * 6 more than 55,000 yuan to 80,000 yuan part of the tax rate 35% calculating quickly deduction 5505 * 7 more than 80,000 tax rate 45% Calculating quickly deduction 13505 * personal income tax = (total income-3500) * tax rate-Calculating quickly deduction * Program output: Tax payable and after-tax income * */#include <stdio.h> int main (int argc, char* argv
	[]) {Double dsalary = 0, Dtax = 0, dnetincome = 0;

	Double dresidues = 0, dcut = 0, drate = 0;
	printf ("Please input your salary:");

	scanf ("%lf", &dsalary);
	Dresidues = dSalary-3500;
	if (dresidues <= 0) {dtax = 0; 
		else {if (dresidues <= 1500) {dcut = 0; drate = 0.03; 
		else if (dresidues <= 4500) {dcut = Drate = 0.1; 
		else if (dresidues <= 9000) {dcut = 555; drate = 0.2; else if (dresidues <= 35000) {dcut = 1005; drate =0.25; 
		else if (dresidues <= 55000) {dcut = 2755; drate = 0.3; 
		else if (dresidues <= 80000) {dcut = 5505; drate = 0.35; 
		else {dcut = 13505; drate = 0.45;
	} dtax = Dresidues * drate-dcut;
	} dnetincome = Dsalary-dtax;

	printf ("Salary:%0.2lf, Tax:%0.2lf, netincome:%0.2lf\n", Dsalary, Dtax, dnetincome);
return 0; }


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.