c语言编程求个人收入调节税

提问时间:2019-09-24 17:48
共1个精选答案
admin 2019-09-24 17:48
最佳答案

c语言的问题:编程输入工资,计算实际工资所得及税金.

#include

main()

{

float gz,sum;

scanf("%%f",&gz);

if(gz>1000)

{if(gz<=2000)

sum=(gz-1000)*0.05;

else if(gz<=5000)

sum=(gz-2000)*0.15+50;

else if(gz<=10000)

sum=(gz-5000)*0.20+50+450;

else sum=(gz-10000)*0.4+50+450+1000;

printf("sum:%%f",sum);

}

}

跪求c语言编程,工资等于底薪加提成。求个人工资

Unsigned int basic,addon;

printf(“ input the basic and addon:”);

scanf(“%d%d”,&basic,&addon);

printf(“结果为

求一个C语言的程序--个人收支管理系统

/*=======个人收入支出管理系统======*/

struct DATA {

int y,m,d;

char brf[250];

long int money1,money2;

char iao;

struct DATA *next;

}data,*head=&data,*final=&data; /*链表节点定义*/

void clear(){

setfillstyle(1,9);

bar(0,0,640,480);

setfillstyle(0,14);

setlinestyle(0,0,2);

rectangle(100,100,540,380);

} /*清屏函数*/

void point(int x,int y){

union REGS in,out;

int86(0x10,&in,&out); /*光标重定位函数,使用了DOS 0x10号中断2号功能*/

}

int check(int y,int m,int d)

{

int date[12]={31,28,31,30,31,30,31,31,30,31,30,31};

if(y>0){

if(m>0&&m<13){

if(((y%%4==0&&y%%100!=0)||(y%%400==0))&&d==29) return 1;

if(d>0&&d

}

}

clear();point(10,20);

printf("Error!You input the illegal Date!");

point(11,20);printf("Press any key to continue!");

return 0;

} /*日期检查函数*/

int check2(int y,int m,int d,int *y1,int *m1,int *d1)