當前位置:首頁 » 編程軟體 » 編程交稅金

編程交稅金

發布時間: 2022-12-11 02:42:33

1. c語言編程回答問題

#include<stdio.h>
int main()
{
int n,m;
scanf("%d",&n);
if(n<3500)
m=0;
if(n>=3500&&n<=5000)
m=(n-3500)*0.03;
if(n>5000&&n<=9500)
m=1500*0.03+(n-5000)*0.1;
if(n>9500)
m=1500*0.03+4500*0.1+(n-9500)*0.2;
printf("%d",m);
return 0;
}

2. 個人所得稅應用程序設計 (JAVA編寫)

這個題目很有意思。不用這么復雜。大概10幾句就做完了。

以前我用C#做過的。先把邏輯簡化了。幾個IF THEN就搞定

3. c語言編程題 計算個人所得稅

5分啊,先給分後完成題目,否則免談。

4. C語言編程根據稅金,計算工資(稅前)

#include <stdio.h>
int main()
{

float tax,income;
printf("請輸入您的稅金:\n");
scanf("%f",&tax);
if(tax<0)
{
printf("\n您的輸入數據有誤,程序結束!\n");
}
else if(tax<=25)
{
income=2000+tax/0.05;
printf("您的月收入為: %f 元\n",income);
}
else
{
income=2500+(tax-25)/0.1;
printf("您的月收入為: %f 元\n",income);
}
return 1;
}

5. 編寫c語言程序實現稅費的計算。輸入一個獎金數,求應交稅款及實得獎金數

#include<stdio.h>
int main()
{
float a ,b,c;
printf("請輸入獎金數:");
scanf("%f",&a);
if (a < 500)
printf("應繳稅款:%f\n實得獎金數:%f",a*0/100,a*100/100);
else if(a>=500&&a<1000)
printf("應繳稅款:%f\n實得獎金數:%f", a * 3/ 100, a * 97 / 100);
else if(a>=1000&&a<2000)
printf("應繳稅款:%f\n實得獎金數:%f", a * 5 / 100, a * 95 / 100);
else if(a>=2000&&a<5000)
printf("應繳稅款:%f\n實得獎金數:%f", a * 8 / 100, a * 92 / 100);
else
printf("應繳稅款:%f\n實得獎金數:%f", a * 12 / 100, a * 88 / 100);
return 0;
}

6. C語言編程,問題如下

#include <stdio.h>

int main(void) {
float salary = 0; //工資
float tax = 0; // 稅

printf("請輸入您的工資:");
scanf("%f", &salary);

if(salary<2000) {
tax = 0;
} else if(salary <3000) {
tax = salary * 0.05;
}else if(salary <5000) {
tax = salary * 0.15;
}else if(salary <10000) {
tax = salary * 0.2;
}else if(salary >=10000) {
tax = salary * 0.3;
}

printf("你需要交納稅金:%6.2f, 實際工資所得為: %6.2f", tax, salary-tax);

getchar();
getchar();

return 0;
}

7. 編程(C語言)

#include "stdio.h"
void main()
{
float tax=0,income=0;re:
printf("Please input income: ");
scanf("%f",&income);
if(income>10000)
tax+=(income-10000)*00.8;
else if(income<=10000&&income>=5000)
tax+=(income-5000)*0.09;
else if(income<=5000&&income>=1000)
tax+=(income-1000)*0.1;
else if(income>=0&&income<=1000);
else goto re;
printf("tax=%.2f",tax);
getch();
}

8. c#.net 如何編程繳納個人所得稅按個人 person類 收入大於3500 按5%繳費,否則不交費

定義一個屬性:
Public int 個人所得稅
{
if(收入 > 3500){return 5;}
}

9. C++編程設計:輸入獎金,輸出對應稅率,應交稅款及實得獎金

#define N 50
#include<iostream>
using namespace std;

int main()
{
float a;
float a1;
float r;
float Real;

cout<<"input jiangjin:";
cin>>a;
if (a<500)
{
r=0;
}
else if (a<1000)
{
r=0.05;
}
else if (a<2000)
{
r=0.08;
}
else if (a<3000)
{
r=0.1;
}
else
{
r=0.15;
}

a1=a*r;
Real=a-a1;
cout<<"jiangjin="<<a<<" shuikuan="<<a1<<" shuilv="<<r<<" shide="<<Real<<endl;
return 0;
}
若滿意請及時採納,謝謝

10. 用python編程解決 假設營業稅率為6%,從鍵盤上輸入銷售額,計算應繳納營業稅款(保留兩位小數)

print('應繳納營業稅款:{:.2f}'.format(int(input('請輸入銷售額:')) * 0.06))
# 輸出結果:
# 請輸入銷售額:10000
# 應繳納營業稅款:600.00

熱點內容
酒店的路由器如何配置 發布:2024-05-19 15:10:44 瀏覽:499
rpgmaker腳本 發布:2024-05-19 14:48:58 瀏覽:406
hds存儲虛擬化 發布:2024-05-19 14:47:09 瀏覽:20
mysql資料庫分片 發布:2024-05-19 14:42:30 瀏覽:341
2021款魏派vv6買哪個配置 發布:2024-05-19 14:31:11 瀏覽:632
前端如何打開第二個伺服器地址 發布:2024-05-19 14:30:55 瀏覽:569
新建文件夾2百度盤 發布:2024-05-19 14:24:07 瀏覽:607
waslinux安裝部署 發布:2024-05-19 14:23:11 瀏覽:786
安卓系統怎麼注冊不了ins 發布:2024-05-19 14:01:00 瀏覽:961
買伺服器後怎麼搭建功能 發布:2024-05-19 14:00:03 瀏覽:208