当前位置:首页 » 编程语言 » 个人所得税c语言

个人所得税c语言

发布时间: 2022-06-09 17:36:57

c语言个人所得税计算系统

这样看能不能符合你的要求,说实话,分好少!不行的话可以追问
include<stdio.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(ratepaying>1500 && ratepaying<=4500)
{
cass=0.1;
fast=105;
}
else if(ratepaying<4500 && ratepaying<=9000)
{
cass=0.2;
fast=555;
}
else if(ratepaying>9000 && ratepaying<=35000)
{
cass=0.25;
fast=1005;
}
else if(ratepaying>35000 && ratepaying<=55000)
{
cass=0.3;
fast=2755;
}
else if(ratepaying>55000 && 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(ratepaying>1455 && ratepaying<=4155)
{
cass=0.1;
fast=105;
}
else if(ratepaying<4155 && ratepaying<=7755)
{
cass=0.2;
fast=555;
}
else if(ratepaying>7755 && ratepaying<=27255)
{
cass=0.25;
fast=1005;
}
else if(ratepaying>27255 && ratepaying<=41255)
{
cass=0.3;
fast=2755;
}
else if(ratepaying>41255 && ratepaying<=57505)
{
cass=0.35;
fast=5505;
}
else
{
cass=0.45;
fast=13505;
}
sum=ratepaying*cass-fast;
printf("应纳个人所得税税额为:%.2lf",sum)
}
}

⑵ c语言计算个人所得税哪个地方出错了

#include<stdio.h>

intmain()
{
floatwages=0.0,tax=0.0;
inti=0;
for(;i<3;++i)
{
scanf("%f",&wages);
tax=0.0;
if(wages>3000)
tax+=(wages-3000)/20;//5%
if(wages>5000)
tax+=(wages-5000)*3/100;//在原基础上增加3%,即8%
if(wages>10000)
tax+=(wages-10000)/25;//在原基础上增加4%,即12%
if(wages>15000)
tax+=(wages-15000)*2/25;//在原基础上增加8%,即20%
printf("%.2f ",tax);
}
return0;
}

以上代码经验证通过并运行正确。

⑶ C语言,个人所得税计算,求大神回答- -悬赏有点少

#include<stdio.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(iit>1500&&iit<=4500) iit = (iit*0.1 - 105);
else if(iit>4500&&iit<=9000) iit = (iit*0.2 - 555);
else if(iit>9000&&iit<=35000) iit = (iit*0.25 -1005);
else if(iit>35000&&iit<=55000) iit= (iit*0.3 -2755);
else if(iit>55000&&iit<=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;
}

⑷ C语言编写个人所得税

代码文本:

#include "stdio.h"

int main(int argc,char *argv[]){

double x,tax;

printf("Please enter the number salary, negative end... ");

while(scanf("%lf",&x),x>=0){

if(x>=5000)

tax=(x-5000)*0.2+4200*.03;

else if(x>=800 && x<5000)

tax=(x-800)*.03;

else

tax=0;

printf("You should pay %.2f yuan. ",tax);

}

return 0;

}

⑸ C语言程序设计题: 个人所得税问题。

#include<stdio.h>
int main()
{float x,y;
scanf("%f",&x);
if(x<1000)y=0;
else if(x<1500)y=0.05*(x-1000);
else if(x<2000)y=500*0.05+0.1*(x-1500);
else if(x<2500)y=500*0.05+500*0.1+0.15*(x-2000);
else y=500*0.05+500*0.1+500*0.15+0.2*(x-2500);
printf("%.2f\n",y);
return 0;
}

⑹ C语言个人所得税计算器编写,求大神

#include"stdio.h"
double count(int a,int b)
{
double c=a-b-3500;
if(c<=0)
c=0;
else if(c<=1500)
c=c*0.03;
else if(c<=4500)
c=c*0.1-105;
else if(c<=9000)
c=c*0.2-555;
else if(c<=35000)
c=c*0.25-1005;
else if(c<=55000)
c=c*0.3-2755;
else if(c<=80000)
c=c*0.35-5505;
else
c=c*0.45-13505;
return c;
}
void main()
{
int chose;
while(1)
{
printf("\t\t个人所得税计算器\n");
printf("1.计算个人所得税\n");
printf("2.退出\n");
printf("请输入选项(1或2):");
scanf("%d",&chose);
if(chose==2)
break;
else if(chose==1)
{
int pay,baoxian;
printf("\n输入你的月收入:");
scanf("%d",&pay);
printf("\n输入你的三险一金:");
scanf("%d",&baoxian);
printf("你的个人所得税为:%0.2f",count(pay,baoxian));
}
else
{
printf("\n\t\t>>>注意:请输入1或2<<<\n");
}
}

}

⑺ 个人所得税的C语言编程

#include<stdio.h>
intmain()
{doublex,y,p1,p2;
while(1)
{scanf("%lf",&x);
if(x<=0)break;
x-=3500;
if(x<=1500){p1=0.03;p2=0;}
elseif(x<=4500){p1=0.1;p2=105;}
elseif(x<=9000){p1=0.2;p2=555;}
elseif(x<=35000){p1=0.25;p2=1005;}
elseif(x<=55000){p1=0.3;p2=2755;}
elseif(x<=80000){p1=0.35;p2=5055;}
else{p1=0.45;p2=13505;}
y=x*p1-p2;
printf("个人所得税=%.2lf ",y);
}
return0;
}

⑻ C语言计算个人所得税 编程

#include <stdio.h>
#include <stdlib.h>
int jishu(double x)
{
if(0<x&&x<=500)
return 1;
else if(500<x&&x<=2000)
return 2;
else if(2000<x&&x<=5000)
return 3;
else if(5000<x&&x<=20000)
return 4;
else if(20000<x&&x<=40000)
return 5;
else if(40000<x&&x<=60000)
return 6;
else if(60000<x&&x<=80000)
return 7;
else if(80000<x&&x<=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("您不用交税 ");
else
{
n=l-3500.0;
i=jishu(n);
m=n*rate[i]-a[i];
printf("应缴个人所得税:%.2lf 实发工资额:%.2lf ",m,l-m);
}
}

这是按你说的计算方法

⑼ C语言个人所得税问题

#include<stdio.h>
intmain()
{
longinti,j;
floats;//将s定义为浮点数即可
scanf("%ld",&i);
j=i-3500;
if(j<=0)
s=0;
elseif(j<=1500)
s=j*0.03;//s是int的时候会强制转换
elseif(j<=4500)
s=j*0.1-105;
elseif(j<=9000)
s=j*0.2-555;
elseif(j<=35000)
s=j*0.25-1005;
elseif(j<=55000)
s=j*0.3-2755;
elseif(j<=80000)
s=j*0.35-5505;
else
s=j*0.45-13505;
printf("YouhaveanincomeofRMB%ld.SoyoushouldshowRMB%lf. ",i,s);
}

热点内容
ea服务器怎么连接 发布:2025-02-08 05:16:45 浏览:461
更加密更改 发布:2025-02-08 05:15:20 浏览:782
仓储资源配置都需要开展哪些任务 发布:2025-02-08 05:13:51 浏览:675
探针数据库 发布:2025-02-08 05:13:35 浏览:79
cfft算法 发布:2025-02-08 04:53:59 浏览:960
极客学院php 发布:2025-02-08 04:52:32 浏览:779
书本编译是什么意思 发布:2025-02-08 04:45:56 浏览:953
淘宝密码账号在哪里看 发布:2025-02-08 04:29:39 浏览:536
描绘四季的美文写一份朗读脚本 发布:2025-02-08 04:29:21 浏览:139
金蝶软件服务器是电脑吗 发布:2025-02-08 04:27:06 浏览:974