本文目录一览:
C语言个人所得税计算系统
这样看能不能符合你的要求,说实话,分好少!不行的话可以追问
includestdio.h
void main()
{
double insure1=0.18; //个人承担保险金
double insure2=0.29; //他人承担保险金
int charge=3500; //费用扣除额
int pay=0; //基本工资
int fast=0; //速算金额
double cass=0.0; //税率
double ratepaying=0.0; //应纳税所得额
int type; //是又个人承担的,还是他人代付
double sum=0.0;
printf("请输入你当月取得的工资收入:%d",pay);
scanf("%d",pay);
printf("个人所得税是由谁承担?(0:自己,1:他人代付):% d",type)
scanf("%d",type);
if(type==0)
{
ratepaying=pay-pay*insure-charge;
if(ratepaying=1500)
{
cass=0.03;
fast=0;
}
else if(ratepaying1500 ratepaying=4500)
{
cass=0.1;
fast=105;
}
else if(ratepaying4500 ratepaying=9000)
{
cass=0.2;
fast=555;
}
else if(ratepaying9000 ratepaying=35000)
{
cass=0.25;
fast=1005;
}
else if(ratepaying35000 ratepaying=55000)
{
cass=0.3;
fast=2755;
}
else if(ratepaying55000 ratepaying=80000)
{
cass=0.35;
fast=5505;
}
else
{
cass=0.45;
fast=13505;
}
sum=ratepaying*cass-fast;
printf("应纳个人所得税税额为:%.2lf",sum)
}
else
{
ratepaying=pay-pay*insure-charge;
if(ratepaying=1455)
{
cass=0.03;
fast=0;
}
else if(ratepaying1455 ratepaying=4155)
{
cass=0.1;
fast=105;
}
else if(ratepaying4155 ratepaying=7755)
{
cass=0.2;
fast=555;
}
else if(ratepaying7755 ratepaying=27255)
{
cass=0.25;
fast=1005;
}
else if(ratepaying27255 ratepaying=41255)
{
cass=0.3;
fast=2755;
}
else if(ratepaying41255 ratepaying=57505)
{
cass=0.35;
fast=5505;
}
else
{
cass=0.45;
fast=13505;
}
sum=ratepaying*cass-fast;
printf("应纳个人所得税税额为:%.2lf",sum)
}
}
C语言计算个人所得税 编程
#include stdio.h
#include stdlib.h
int jishu(double x)
{
if(0xx=500)
return 1;
else if(500xx=2000)
return 2;
else if(2000xx=5000)
return 3;
else if(5000xx=20000)
return 4;
else if(20000xx=40000)
return 5;
else if(40000xx=60000)
return 6;
else if(60000xx=80000)
return 7;
else if(80000xx=100000)
return 8;
else
return 9;
}
main()
{
double rate[10]={0.0,0.05,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45};
int a[10]={0,0,25,125,375,1375,3375,6375,10375,15375};
double n,m,l;
int i;
printf("请输入工资:");
scanf("%lf",l);
if(l=3500)
printf("您不用交税\n");
else
{
n=l-3500.0;
i=jishu(n);
m=n*rate[i]-a[i];
printf("应缴个人所得税:%.2lf\n实发工资额:%.2lf\n",m,l-m);
}
}
这是按你说的计算方法
C语言,个人所得税计算,求大神回答- -悬赏有点少
#includestdio.h
double IIT(int money,int nation)
{
double iit = money;
switch(nation)
{
case 1 : iit = money - 1000 - 3500 ;break;
case 0 : iit = money - 1000 - 4800 ;break;
default: printf("输入有误!\n");
}
if(iit =1500) iit = iit*0.03;
else if(iit1500iit=4500) iit = (iit*0.1 - 105);
else if(iit4500iit=9000) iit = (iit*0.2 - 555);
else if(iit9000iit=35000) iit = (iit*0.25 -1005);
else if(iit35000iit=55000) iit= (iit*0.3 -2755);
else if(iit55000iit=80000) iit= (iit*0.35 -5505);
else iit = (iit*0.45 - 13505);
return iit;
}
int main()
{
int money,nation;
printf("请确定你的国籍: 1.中国 0.外籍\n");
scanf("%d",nation);
printf("请输入您的工资: ");
scanf("%d",money);
if(nation == 1){
if(money = 4500)
printf("您不需要缴纳个人所得税。\n");
else
printf("您要缴纳的个人所得税为: %.0f",IIT(money,nation));
}
if(nation == 0)
{
if(money = 5800)
printf("您不需要缴纳个人所得税。\n");
else
printf("您要缴纳的个人所得税为: %.0f",IIT(money,nation));
}
return 0;
}