烟台大学计算机学院
文件名称:个人所得税
作者:李亚辉
完成日期:2016年3月30日
版本号:vc++6.0
问题描述:输入个人总收入,计算个人所得税与税后收入
输入描述:月收入总额
程序输出:个人所得税与税后收入
#include<iostream>
using namespace std;
int main()
{
double dSalary,dTax=0,dNetIncome=0;
cout<<"请输入您的本月的收入金额(元):";
cin>>dSalary;
double t=dSalary-3500;
if(t<=1500)
dTax=t*0.03;
else if(t<=4500)
dTax=t*0.1-105;
else if(t<=9000)
dTax=t*0.2-555;
else if(t<=35000)
dTax=t*0.25-1005;
else if(t<=55000)
dTax=t*0.3-2755;
else if(t<=80000)
dTax=t*0.35-5505;
else
dTax=t*0.45-13505;
dNetIncome=dSalary-dTax;
cout<<"您本月应缴个人所得税"<<dTax<<"元,税后收入是"<<dNetIncome<<"元。\n";
cout<<"依法纳税,共享繁荣。谢谢使用!\n";
return 0;
}
第三周个人所得税计算器
最新推荐文章于 2018-05-18 11:01:00 发布