Toggle navigation
Courses
Questions
Tags
Users
AC 20161027 期中考 6
0
like
0
dislike
7.2k
views
目前的所得稅累進稅率為:
0-520000 5%
520001-1170000 12%
1170001-2350000 20%
2350001-4400000 30%
4400001-10000000 40%
10000001- 45%
請撰寫一程式,由使用者輸入所得後計算出所得稅輸出。
sample input:
1000000
sample output:
83600
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15426 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
reshown
Oct 27, 2016
by
Shun-Po
|
7.2k
views
comment
0
1
Called for Help
0
0
Called for Help
Please
log in
or
register
to add a comment.
112
Answers
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
* * * ** ****** *** * * * a=0,b=0,c=0,d=0,e=0;
*** * * ** * ***** * * ****** * ** ** *
{
**** **** * * *** * * ***** * * (a<=520000 )
*** ** * *** * * ** * * ** * ** **** *** * * ** = a/100*5;
**** ** **** * * * * (a>520000 && a<=1170000)
* * ** ** * ** ** * **
* ** * ** * ** * *** * ********* ** ****** **** **** = a-520000;
* * ** * * ********** **** * * ** ** ** * * * ** * ** ** = c/100*12;
* ***** *** *** ** ** * ** *** *** * * * *** ** = b+26000;
* ** ** * ** * ***** * * * *
** ** * *** ** * * ***** (a>1170000 && a<=2350000)
*** * * *** * *
** * * ** *** * * * *** * * **** = a-1170000;
**** * ** * **** * * * * ** * * * *** = c/100*20;
* ******* * * * * * *** * *** * * *** = * * ***** ** * * *
** * * * ****** * ** ** *
* * * * * ** * ****** *** (a>2350000 && a<=4400000)
*** ** ** * ** * * * ** **
* *** ******* * * * * ** * * ** * ** *** ** * = a-2350000;
* * ****** * **** * ** * ** ** * **** * ** ****** * = c/100*30;
** * * ** * * ** * * *** * * * ** *** ** = * * *** * * ****
**** *** *** * *** **
* * *** ** ** * ** * (a>4400000 && a<=10000000)
******** * ** ** **** * ** * *
* * ** *** ** *** *** * ** * ** ** *** ********* = a-4400000;
* * * * * * * ** ***** * * ** * ********** ***** = c/100*40;
*** ** * * *** ****** * ** ** **** * * * ** = *** * * ** * * * * *** * ** *
* *** ***** * * * **** ***
* ******** * * * **** * *** (a>10000000 )
** ** * **** * ** * * * *
* **** * ** ** * *** * * **** * * **** = a-10000000;
**** * * ******* * * ** * ** * * * * * ** ** = d/100*45;
* ** *** *** ** *** ** *** * **** ** ***** ** = ** ** **** **** ** * ** *
* *** *** * ** **** * * ******
}
** * * * ***** ** * ** = b+d;
**** * *** * * ****** ("%d",e);
*** ** * * * * **** *** 0;
}
answered
Oct 27, 2016
by
410523016
(
-136
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
* * * ** * ** *** a=0,b=0,c=0,d=0,e=0;
********* * * *** ** **** * * **** * * *
{
** ** * * *** *** ******* (a<=520000 )
* * * ** ** *** * ** * *** ** * *** *** *** = a/100*5;
**** ** * ** * * ** * * * ** * (a>520000 && a<=1170000)
* * **** ** * * * * **
* * * * * * * ** ** * *** ** * **** * * * = a-520000;
* ** * * * *** * * * * * * * * * * ** *** ** = c/100*12;
** ** *** ** ******* ** * *** ** ******* * *** * * * = b+26000;
* ** *** **** ****
* ** * * ** **** ** * (a>1170000 && a<=2350000)
* * *** ** * *** *
* * * *** *** ** ** **** * ***** ******* * * = a-1170000;
** ***** * * * * *** * ** **** * ** * * * ** * = c/100*20;
* * *** **** *** ** *** **** * * *** ** * ** * = ****** * *** * *
* * ** ** *** *** * *** * ** ** **
* * **** ** ** ** ***** (a>2350000 && a<=4400000)
* *** ****** * ** * ** ****
** * * * * ** * * * ** * * ** * *** *** ** * * ** = a-2350000;
**** * * * * ** ** ** * **** * * ** * **** ** ** ** = c/100*30;
** ** * * ** * * * **** *** ** ** **** *** * = ** * ****** *** *
** * * * *** **** * * * *
* * ** * * ** *** ** *** * *** (a>4400000 && a<=10000000)
*** * *** ** ***** * ** *
* ** *** * * *** ******* * * * * **** ** *** ****** * *** = a-4400000;
* * **** * **** *** * ******** ** * ** ** **** * * = c/100*40;
******** * ** * **** ** *** * ** *** ** **** ** = ***** * * ***** ** ** **********
* * **** * ** ** **** **
**** ** * * * * **** *** (a>10000000 )
** *** * ** * ** *** *
* ** ** * ** * ******* * *** * ** ** * * ** * ** * *** = a-10000000;
** * * ***** *** * * **** ** * * * * ** = d/100*45;
* * ** ** * * ** * * * **** * ** ** * * ** = * * * *** ** * ****** * * ** * **
***** * * ** ** ** ***
}
* * ** *** * *** * * * * *** = b+d;
** * *** ** ** ** **** ** ("%f",e);
*** * * ** ******* * 0;
}
answered
Oct 27, 2016
by
410523016
(
-136
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* * ** *** ***** ** ** *
** * * *** ** * * *
int main ()
{
**** * * * ** * ** ** * * ** num ;
****** *** * * * * ** ** ** *** &num) ;
* * * ** * * ** *** * *** <= 520000)
* * * * ** * **** * ** * **** *** * ** ** * *** ** , num*0.05 );
* * * ** * ** ** ** * if (num <= 1170000)
***** ** * * ****** * ** ***** ** * * ** ** *** * * , 26000+(num-520000)*0.12 );
*** * * * * * * * **** if (num <= 2350000)
* ** * *** ** ** * ** * *** ** * ** *** **** * ** , *** * * ** );
* ** * *** ** * **** *** * * *** ****** * * * *** if (num <= 4400000)
* * *** * * **** * * ** * ************ * * * **** ** * , 340000+(num-2350000)*0.3 );
*** ** ** * ****** * **** * *** * ** * ** if (num <= 10000000)
** * * * *** * * * * * * *** ** **** * ** * * , 955000+(num-4400000)*0.4 );
** *** ** ** *** * * * * * * **** ** ** ***
*** ** *** * ***** ** *** * * **** * * * * * * * * * * * *** ** * ** , * * * );
** ** ******* * * * * * * 0 ;
}
answered
Oct 27, 2016
by
410523022
(
-276
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
** * ** ** * ** **** ** * j,n;
* * * ** ******** * * **** * *
* ** ** ** * **** ** ** **** * ***
{
** * * * * * ** * ** ** ** * * * * * ***
* * * ***** * *** * * * *** ** * ** ** ******* ** ** *** **
** ** *** ** ******* *
** *** *** * ** * *** if(j>=4400001)
{
** ** ** ** *** * * * *** *** ** * *** * * ** * ***
** ** ****** ** * ** **** ** * ** ** * ** **** * ** * ** *
}
**** * **** * * if(j>=2350001)
{
*** ** ** * * * *** * *** *** **** ** *** ** *
*** * * ** ******** **** * * ******* * *** * ******* * ** ** * * *** *
** * ** * * ** * *
* * * * *** * * ** * ***** if(j>=1170001)
** *** ***
* * ** ** * ***** * *** * * * * **** * *** **
*** *** * *** * * ***** *** * * * * * *** * * * * *
* ** * *** * * * *******
**** *** * * * * if(j>=520001)
* * ** **** *** **** * ******
*** ** ** * *** *** *** ** * * * ** ** ** * *
** * *** * * *** * * ***** ** **** * * *** ** * * *
** ** * * ** * *** * *
*** * ** * ** ** * * *** *
** ** ** ** ** *******
** * ** * ****** ** * ** ** *** ** * ** * ******
* ** * * ** *** ** *** * ** *** ** ** * **** * ** ** ****** **** * *
}
return 0;
}
answered
Oct 27, 2016
by
410523022
(
-276
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include ** ** * ***
int main()
{
int i;
* * * ****** ** * *** ** i);
*** ** ** * ** * ****
* ** * **** **** * *
else * * **** * ***
*** *** * ***
else ** ** * * *** *****
***** * **** ****** * **
else *** *********** *
* * * ** *** **
else * * * *
* ** ** * * * *
else * * * * * *
******* **** * ** ***
return 0;
}
answered
Oct 27, 2016
by
rickyliu
(
-50
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
*** * *** * ****** ** j,n;
** * ** * *** ** * * ** * *
* * * ******* * *** * *** ** * * **
{
* ******* * ** ** * * * ** * **** * * * **** ***
** * * *** * * **** * * *** ***** * ***** *** ** **
*** ** ** ** **** * * * *
* * ** * * *** * * * if(j>=4400001)
{
**** ** ***** * *** * * * ** **** * *** * *******
*** *** * * *** * **** *** ******* * ** ** * * * * * * *
}
** ** * * * *** * * *** ** if(j>=2350001)
{
* * *** * **** **** * * * * *** * * * * *
***** * ****** * *** * * **** ** ******* * ***** * * *** * **
* **** * * **** **
*** ***** * ** * * * * ** if(j>=1170001)
* * * **** * ** **
* * ** * * * ** * *** * * **** * ** * * ** **
******* * ************ * *** * ** * *** ** *** * * ** ** ** *
** ********** ** * ** *
* ** ** * * * ** if(j>=520001)
***** **** ***** * * *
** * *** *** ** ** ** ** *** * * * * *
*** * * ****** *** ** * * *** *** *** ***** * * * ** * * ***
** ** ** * ** * ** *** *
* * *** ** * * * * *
*** ** ** * ******* *
* * ** * *** * ** ** * ** * *** * * ** *
** ** *** * ** ** **** * * * ****** **** * * * ** * *
}
return 0;
}
answered
Oct 27, 2016
by
Gulang
(
-122
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
** * * * ****** **
* * * ******* ** **
int main()
{
int i,sum;
** *** * ** * * * * *****
if(i<=520000)
{
sum=i*0.05;
}
else *** *** * **** *** ****** * **
{
* **** *** * * * *** * * ** * * * * *** **
}
else *** ** * * * * * * * * * * *
{
* * ******* *** ***** *** ** *** *** ***
}
else ***** *** * ** * ** *** * **
{
*** **** *** * * ***** ** **** * * ** ***
}
else * ** ***** * * * ** * ****
{
* * *** * ** ** * * *** * ** * ** * * ***** *
}
else * **** * * * *
{
* *** * **** * * * *** * ** **** * *
}
* ** * * *** * *
return 0;
}
answered
Oct 27, 2016
by
羅祖嘉
(
-248
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* **** * ** ** * *
* * * ** *** *
int main()
{
int i,sum;
** ** ** * **** ** * *** ** *
if(i<=520000)
{
sum=i*0.05;
}
else * *** ** ** * ***** ** ** ** *
{
*** *** * * **** * ** *** * * ** * * *
}
else * * *** * ** * ****** * * *
{
* * * * ** ** *** * *** * * ***** * ** ** **
}
else * ***** * ** ** *****
{
** ** **** * *** ****** * * ** *** ** * * *
}
else ** *** * * ** * **** * *** ** *
{
* * * *** ** ** * ** *** ******* *
}
else ** *** * ** *
{
* ** * **** * ** * ** * ** ******* ** **** ** *
}
******* * * *** * *
return 0;
}
answered
Oct 27, 2016
by
羅祖嘉
(
-248
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * ** * * * **
int main()
{
* * ** ** *** ** i = 0,j = 83600;
* * * * ** * * ***** *** * * * ***
* * * * * * * * = 100000)
***** * * ******** ** * * * * ** * ** * *
** ** *** ** ***** * * 0;
}
answered
Oct 27, 2016
by
蘇瑋朝
(
-8
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main()
{
**** * **** ** ** **** * i , o;
* ** * *** * *** * ** *** ** , &i );
****** * ** * ** * * >= 0 || i <= 520000)
** * ******* *** ** ****
** ** * ** ** * * **** **** * *** = i/20;
* * * ***** ** ***** ** ** ** * * * * ** * * ******* *** , o);
* ** * *** * * *
* * **** * * * * if(i >= 520001 || i <= 1170000)
** ** ****** * * ** * *****
** ** * * * * ** * *** * * ** * *** *** = i*12/100;
* * * * * * * **** * * * *** **** ** ** ******* * , o);
* *** *** * ** *
** * * ***** ******* * if(i >= 1170001 || i <= 2350000)
****** ** *** ******* *
* * ** ** * * * ** * ** * * **** *** * = i/5;
*** * * * *** *** ** * * ****** * ** ****** * * **** , o);
* ** * * *** **** * * *
* ** ** * ** * ** if(i >= 2350001 || i <= 4400000)
* ** ** * * ** * * *
* ** * * * **** *** * * * * *** * * = i*3/10;
** * ********* * * * * * * * *** * * * ** ** * * ** , o);
**** * * ** * * *
* **** * * * **** if(i >= 4400001 || i <= 10000000)
* * ** * ** * ** * *
*** * ***** *** ** ** ** * * * *** *** * * = i*2/5;
** * * *** *** * * * * * *** * * ***** **** ** * ** * , o);
* * ** * *** ** *
** *** * * * * if(i >= 10000001)
* * * * * **** * * **
** * ** ** * ** *** **** *** * * * ** ***** * = i*9/20;
*** * ** * *** * ** * ** * * * * *** * ** ** * *** ** , o);
* * *** * ** * ** *
** * ***** ** *** * * * ** * 0;
}
answered
Oct 27, 2016
by
410523022
(
-276
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
...
7
8
9
10
11
12
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.69.58.88
©2016-2025
Related questions
0
like
0
dislike
0
answers
AC 20161027 期中考公告
[Resource]
asked
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15475 -
Available when:
Unlimited
-
Due to:
Unlimited
|
13
views
0
like
0
dislike
5
answers
AC 20161027 期中考 10
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15447 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
920
views
1
like
0
dislike
37
answers
AC 20161027 期中考 9
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15446 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
3k
views
1
like
0
dislike
17
answers
AC 20161027 期中考 8
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15442 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
1.6k
views
1
like
0
dislike
18
answers
AC 20161027 期中考 7
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AC
by
Shun-Po
(
18k
points)
ID: 15440 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
1.6k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users