//
// main.cpp
// project
//
// Created by 徐伟 on 6/8/16.
// Copyright © 2016 fizz_i. All rights reserved.
//
#include <iostream>
using namespace std;
int main( )
{
double dSalary,dTax=0,dNetIncome=0;
double dValue;
cout<<"请输入您本月的收入总额(元):";
cin>>dSalary;
dValue=dSalary-3500;
if(dValue<=0.0)
dTax=0.0;
else
{
if(dValue<=1500)
dTax=dValue*0.03-0.0;
else if(dValue<=4500)
dTax=dValue*0.10-105.0;
else if(dValue<=9000)
dTax=dValue*0.20-555.0;
else if(dValue<=35000)
dTax=dValue*0.25-1005.0;
else if(dValue<=55000)
dTax=dValue*0.30-2755.0;
else if(dValue<=80000)
dTax=dValue*0.35-5505.0;
else
dTax=dValue*0.45-13505.0;
}
dNetIncome=dSalary-dTax; //计算得到
cout<<"您本月应缴个人所得税 "<<dTax<<" 元,税后收入是 "<<dNetIncome<<" 元。\n";
cout<<"依法纳税,共享繁荣。谢谢使用!\n";
return 0;
}
个人所得税计算器
最新推荐文章于 2024-06-10 07:45:00 发布