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!
* ** ***** **
int main()
{
* * ** *** * * ** O;
* * **** * * * ** *** * **** * * * * ***
* ** *** ***** ** ** * b = ** * ***
* * ** * * * * c = ** *
* ** * * * *** * *** * d = ** **
** ****** ** * **** * * e = * *** ***
* * * * ** * * * * f = 520000;
*** * ** * ** * ** B = (M - * 0.45 + b * 0.4 + c * 0.3 + d * 0.2 + e * 0.12 + f * 0.05;
** ** ** * *** * * * C = (M - ** * * 0.4 + c * 0.3 + d * 0.2 + e * 0.12 + f * 0.05;
*** ** * ** *** * * D = (M - * * * 0.3 + d * 0.2 + e * 0.12 + f * 0.05;
* **** ****** * * *** * * ** E = (M - 1170001) * 0.2 + e * 0.12 + f * 0.05;
* * * ** * * F = (M - 520001) * 0.12 + f * 0.05;
**** *** **** ** * *** G = M *0.05;
**** * ** *** * *** * ** * *
* * * * * * **** *** ** * ** * ** * ** ** ******** * B);
* * ** * * * * * * * * if(M * ** **
* ** ** * ** ** * ** ** * * *** *** *** * * * ** * * * C);
* * *** * * ** ** ***** if(M *** * 2350001)
** ***** ** * ** *** **** ** ** * ** * *** * * **** ****
* ** * * ** * * ** * * * if(M * * 1170001)
* ** *** ** * * ** * ** ** ** ********** * * * *** * **** * * * * E);
** **** ******* *** * if(M **** 520001)
** * * * * * *** *** * * ** * * * * ** ** ** * ** F);
** *** *** ***** ** * *
* * **** *** * ** * * **** * * ******** * ** **** * ** G);
}
answered
Oct 27, 2016
by
410425045
(
-90
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
main()
{
int i;
* **** * ******* * j;
* * * * * ** *** * *** *** &i);
* * * * * **** * * * ** * ****
j = (i * 5) / 100;
* * **** * * * * ** * * *** *** *** * if((i<=1170000)
*** * * * * * * * ** * ** * * = (((i-520000)*12)/ 100)+(520000*5)/100;
* * * * *** * * * ** * * ** * * * ** *** * * if(i<=2350000)
* * * * * * * **** * * ** * ***** * ** * = ** ** * * **** ******** 100)+(520000*5)/100);
** * ** ** *** * * ** ***** * ** * *** * * * * ** * * * * * ** * if(i<=4400000)
* *** * * * ** *** * ** * * * * ** ***** * * ** * ***** * ** = *** * * ** ** ** ***** *** * ** 100)+(520000*5)/100);
** * * * ** *** * * * **** * * * ** ***** * **** ***** * **** ** ** ** * if(i<=10000000)
** **** * ** ** ** * * ** ** *** * * * * **** * ** * ***** * *** *** * = * ** * ** ** * * ** * * * * ** * * * * ** 100)+(520000*5)/100);
* *** * * * ** *** * * *** ** * ** * ** * ** **** **** * ** ** **** ** *** ** ** * * * ** **
* ** *** * * ** ** * ** ** ** * ** **** ***** * * * * * * ***** *** ** *** ** ** ** * * * ** *** = **** **** * * * * ** ** **** * * ******** **** 100)+(520000*5)/100);
* *** ** ** * * ** j);
* ** ** * ****** 0;
}
answered
Oct 27, 2016
by
CHONGYAOWEI
(
-52
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
main()
{
int i;
*** * ** ** *** * j;
* * **** * ** **** * * **** &i);
* * * * **** **** **
j = (i * 5) / 100;
**** ** *** * ** * ***** if((i<=1170000)
** **** ** ***** ** *** ** * * *** = (((i-520000)*12)/ 100)+(520000*5)/100;
*** * * ** ** **** * ** ** * * * ** * * if(i<=2350000)
* ********* **** * * * * *** * * ** * ** ** ** ** * = * *** * * ** **** 100)+(520000*5)/100);
* * * * ** ** ** *** * * * * * ** ** * ** **** * * * if(i<=4400000)
** **** ** ******* ** *** *** * ** ** * ** ****** * ** ** * *** * = ** * ** *** ** * **** ***** ** * *** 100)+(520000*5)/100);
* * ** * * * ** * **** * * *** ******** ** * * *** * * ** * * * *** if(i<=10000000)
* * ***** *** **** * ** * * *** * ** *** * *** * * * * * ** **** * = *** * * ** ** *** * *** * * * * * * ** *** * 100)+(520000*5)/100);
* * * ****** *** * * * * * * * ** ** ***** * * * * * ** **** ** **** * *** * ***** * **** ** **
*** * * ** * ** **** * ** ** ** ** ** *** ** * * * *** * * * * ** ****** ** ** ** * ***** ** = * * * * *** * *** * *** * ** **** **** * *** **** * * * 100)+(520000*5)/100);
** *** *** * *** *** * * * * * * j);
* * *** *** ** 0;
}
answered
Oct 27, 2016
by
CHONGYAOWEI
(
-52
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 ()
{
* * * * ***** ** **** * m,x;
**** * ** ** * ** ***** ***** * ** &m);
** * * *** **** ** * <= 520000)
* * * ** * * * * *** * * ***
***** * * *** * * *** * **** = m*5/100;
** * * * ** * ** * ** * ** * * ** ** * x);
* ** ** * ******** *** ** ** * * * 0;
******* * ** *** * * * **** **
** * ** *** * ** ** m <= 1170000 && m>= 520000)
******** * * * ***** ** * ** *** *** * 520000*5/100+(m-520000)*12/100;
*** ** * * * ** ** * ** ** * * ** ** * * ** * **** *** x);
* *** *** ** ********** * * **** * ***** * * 0;
if( m <= 2350000 && m>= 1170000)
*** * * ** ** ** ** * ** * * * ** *** * * * * *** *
** * * **** ********* * * * **** * * * * * * *** ** * *** * * x);
* ** **** * * ** **** * * * * * * *** **** *** 0;
** ** * ** * ** ** ** m <= 4400000 && m>= 2350000)
* ***** * ** ** * * * * * ****** ** ****** *** ** *** * *
* * * ** * ** ** * *** ** ****** * * ***** * ******* *** ** x);
* * * * * * ** * *** *** ** *** * * * ** * *** ** * * * 0;
*** * * * * * * * m <= 10000000 && m>= 4400000)
***** **** ** *** * **** * ** * ** * ** * *** * ** * ***** **** *** *** * ** * * ** * * **
**** ** * * ** * ***** ** * * ** ** ***** * **** *** * * ****** * x);
*** * *** *** * ** **** ** * * *** * *** * ** *** 0;
if( m > 10000000)
**** ** * * * * * ** * * ** **** ***** ** ** *** *** ** * * ***** ** ** ** * * * * * * * *
**** * * * * ** * ** ** ** *** *** ** * *** * ** *** * x);
* *** ** * ** * * * * * ** *** * *** ** ** * * * ** * * 0;
* * * * ** * * ** * * * * *** * * 0;
}
answered
Oct 27, 2016
by
410523030
(
-34
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()
{
float a=0,c,d;
* **** * * * *** * * * *** *** * **** **
** *** * ** ** *** * ******* *** * * *
* *** **** *** *** *** * *** * *
** ** * ** ****** * * ** ********* * * *** * * *
** *** ** ** *** ** * * * * * * ** * * ** **** * ***** **** ***
**** ** **** * ** * **** * *
else if(a>=520001&&a<=1170000)
* ** * * ** * * ***** *******
****** ** ** ** * * ** * * ****** *** * * ** **** * ***** **
** ** * ** ***** *** **** ** * * **** ** *** * * * *****
** *** * * ***** *
else if(a>=1170001&&a<=2350000)
**** ** * * **** * *
** * ** * **** * * ** * * * * *** * * * ** *** ****** * ******** **
* * * * * * * *** *** * * * *** * * * * * ***
* * * * **** * ** *** * * * * ****
else if(a>=2350001&&a<=4400000)
* *** ** * *** *** ** *** ** * * **
****** * *** * **** *** ** * * * ** **** ***** * ***** ***** ***** * * * * * * *
* * * ** *** * **** * ** *** * ***** ** ** ****** ** * * * ** *
* * * **** * *** * ******* ***
else ** * * * **** ** * ** *
* ** ** ** * * **** * ***** **
* *** * ** * ** ** * **** * * * * ** * ** * * * * * * * ** *** * * *** ** *
* * *** * ***** * * * * ** * ** * *** * ** * ** **********
* * * *** * ** * * * ** *** * * *
else
* ** **** * * **** ** * *
* * * ** *** * * *** * * ** *** ** * ** * ** * * * * * ** * * * * ** * * **** **** **
* * ** * * * * ** * * *** * **** *** ** ** *
** ***** ****** ** * * ** ** ***** * * **
return 0;
}
answered
Oct 27, 2016
by
林佳慧
(
-85
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* * * * * ** * **
int main()
{
int a,b,c,d,e,f,g;
*** * ** * *** ** * *
if (a>0 * ** * ** * **
* * ******** ** * *
* * ** ** * * * *** ** * * * * * ***
} else if ** * * * * * ** a>=520001)
{
* * * *** * * * * ** ** ** ***
**** * ** * * **
}
else if ** * * *** *** *
{
** * *** ** * * *** * ** * ***** ***
* * ** *********** ** ** * * ** *** **
}
elae if * ** * * ****** * ** * * ** *
* *** * * *
* * ** *** *** * ***
}
else if ** * ** ***** *** * *
* * ** * *** *** ***** ****** * ***
* *** * ** * * *
else if * * * *
* ** ***** * * * * * * * * * * * *** ***
* * *** *** * * ****
}
answered
Oct 27, 2016
by
楊介振
(
-383
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main()
{
int num;
*** ***** ** *** output;
**** * * *** ** ** * * * ** * * * ** * ** * *
****** * * * *** * * * * **** *** * * ***
if (num>a)
* * * *** * **** * ** ** *** ** ** ** *****
********* * ** * **** *** if(num>b)
** * *** * ** ** ** ******* ** **** **** *
** ** **** ** ** ** ** * if(num>c)
* * * * ** * * ** * * * * ******* ****
***** * * **** **** ***** * if(num>d)
* * *** * * * * * * *** * * * **
* ** ** *** ** * * ** * * if(num>e)
* * * *** *** * * ** * * **** ** ***
* **** ** * ****** * *
** * *** * * * ** ***** * **** ** * * *
** ** ** * * * * ** **** ** * * **** * *
}
answered
Oct 27, 2016
by
410425016
(
-124
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()
{
* * * ** ********* *** ** **** * ** ** ** ****
* ** ** *** * **** * ** * * * * **** *** ***
** * * *** * ** ** ** ** * *****
* ** * *** * * * * ** ** * * * ** * = enter * 0.05;
* * **** * **** * *** * * * ** * ** * ***** * **** * * * * *
* ** * ** * * ** **
* *** * * *** * * * * if(520000<enter<=1170000){
* * *** * * * *** *** * * ***** *** *** ****** *** ** * = (enter - 520000) * 0.12 + i1;
***** **** ** ***** * * ** * **** * * * * * ** *** ** * * * * *
******* *** **** *** * **
** * *** *** * *** * * if(1170000<enter<=2350000){
* * * ***** *** *** * * *** * * * ** ** = (enter - 1170000) * 0.2 + i1 + i2;
** *** * *** *** * * ** *** * *** ** * * *** ***
* *** * **** * ** **
* ** ** **** * *** * if(2350000<enter<=4400000){
* * ** ** * *** ***** ** * * * **** ***** *** = (enter - 2350000) * 0.3 + i1 + i2 + i3;
* ***** ** * **** * **** * ** * * * * * ** ** ** * *****
**** * * *** ** *
**** * * * * * **** ** ** * * * ***** *** * * **** **
* **** * **** * ** * ** *** * *** *** = (enter - 4400000) * 0.4 + i1 + i2 + i3 + i4;
* ** *** * ** ** * * ** **** * * * *** * * ** * * * ** * * **
* ** *** * **** ** * *** *
** * **** ** ***** * * if(enter>10000000){
* * ** * * * *** **** ** ** ** ****** ** = (enter - 10000000) * 0.45 + i1 + i2 + i3 + i4 + i5;
** *** ** * ** * *** ***** * ** * * **** * ** ****** ** * *** *
** *** * *** * ** ** ***
* * ** *** **** * ** * 0;
}
answered
Oct 27, 2016
by
loyfree0706
(
-216
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main()
{
int num;
* *** **** ***** ** ** output;
* * ** * ** * * * * * **** * ** * * *
*** * *** *** ** * * *** *** * **
if (num>a)
*** * ** ** * ** * * ****** ** ** ** * **** ***
* * * * *** ** * if(num>b)
** **** * * ******* *** ** * **** * *
* * * *** *** ** * * if(num>c)
* * * ** ** * **** *** * *** ** ** ** * * *
** * *** * * * * **** * * * if(num>d)
* * * * * ** * * ****** * ** * **** * * **
** * * *** * * **** * if(num>e)
*** * * ** * * * * *** ****** * ** *** * *
* * ** ***** *** *********
* * ** *** ** * ********** ****** ** * *
* ** * * ** ** * ** * * * *** * ** ** **** * * **
}
answered
Oct 27, 2016
by
410425016
(
-124
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include <stdio.h>
int main()
{
int num;
* * * * **** * * * output;
*** ** * * * *** ** * * *** ** * *** ***** ***
*** ** ***** * ** * * ** ** *** * *
if (num>a)
*** * ** * **** **** *** *** * * * * * **** * *
*** ******** * * * * if(num>b)
*** ** * * ***** *** ** **** ** ***** ** ** * ** *
* ** *** *** ** * if(num>c)
*** * * ** ** ******* *** ***** * ***** *** ******* *
** ** * * * * * *** if(num>d)
**** ** * * ** * ** *** * ***** * * * * * * * ***
** **** * ***** ** if(num>e)
* * * ** ** ** * *** * ** *** * ** * *** ****** ***** *
* * ** ** * **** * ** ***
* * ** * ** * * ** ** *** ** ** *
** * *** **** * * * *** * *** ** ** * * * * ** *
}
answered
Oct 27, 2016
by
410425016
(
-124
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
1
2
3
4
...
12
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.71.1.149
©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