Toggle navigation
Courses
Questions
Tags
Users
AC 20161027 期中考 6
0
like
0
dislike
6.6k
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
|
6.6k
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 * * * **
* ** *
* *** ** * * ****
int main(void)
{
* * ** * * ** * i = 0,j = 0;
* **** *** ** ** **** * ** * ***** **** **
* ** **** * * * ** ** > 10000000)
* * ** * *** * * **
******* ** * * * ****** * ** * * 0.05)+ 520000 * 0.12+ * ***** * ** * 0.3+4400000 * 0.4+(i -10000000) * 0.45;
*** ** * ** ** * ** ** * * * * * ** * *
* * * * ***
** ** ** * * * if(i * **
** * * ****
* * * * * **** ** * ** *** * 0.05)+ 520000 * 0.12+ * * ** *** * * 0.3+(i - 4400000) * 0.4;
* * *** * * * * ** ** *** * * * * * *
* ** * * ** *
** * * ** **** * ** * if(i > 2350000)
* * ** ** *** * *
* ** * * *** * ** * ** *** ** * 0.05)+ 520000 * 0.12+ 1170000*0.2+(i - 2350000) * 0.3;
* * *** * * ** * * **** * * *** *
* * * * * *
* ***** * * * * * if(i > 1170000)
** ********* ** * *** * **
****** **** * ** ** * * * * 0.05)+ 520000 * 0.12+(i - 1170000)*0.2;
***** ** ** ** * * **** * ** ***** * * *
** * * ** * * *** ** *
* * * *** **** if(i > 520000)
* ** ** *** *
** *** * ** * * * *** ** * *** * 0.05)+(i - 520000) * 0.12;
** **** ** * ** *** *** * ** ** ***** **** *
* ** ** * * **
* * ** * ** ** *
* ** * * ** * *
** ** ** * * * * * * * ****
*** * * *** * * * ** * * *** * * * **
*** * ** * *
* ** ** *** ** *** 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()
{
int a,b;
** * * **** * ****** *** **** * ** ***
********* ** * *** ***** *** *
* *** ** * ** ** * * * * *** * ** ** *** *** *
** * ** * *** ** * * **** if(a<=1170000)
* ***** ***** * ** * ******* ** * * ****** * *** * ******* * ** *
***** * ** **** **** * if(a<=2350000)
** * *** ****** * * * * * * ** *** ***** ** ** ** * * ** *** * * **
else if(a<=4400000)
* * * *** ** *** * ** ** *** ** * * * * ** * * *** * * * ** * * * ****
* * ** ** * ** ** ** * if(a<=10000000)
******* ***** *** *** ****** *** * *** * * * * * ** ***** ***** *** ***** *
**** ** * * *** * * ** * * if(a>10000000)
** *** ***** ** * ******** * ** * * ** * **** * * * ** ** ** ** * * ** * * ** ** ** ** ***
**** *** * * ** *** *** * *** *** ****
** **** * ** * * ** * *** ** ** ** * * **
** * ** * * * * * ** * * * * 0;
}
answered
Oct 27, 2016
by
威
(
-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()
{
int q;
** * ** * * ***** ** ** ** * **** *** * *
if ** * * * ** * * ** * ** ***
****** * ***** * *** ** ** * * ** *** * *** * *** ** ** ***** ***
* * ** * * * * * ** * * ** * * ** * *** * **** * *
**** ******* * *** ** * * * ** **** ** ** ******* * *** * *** * ****** * ** *
else * **** * * ** * * *
** * ** * * * **** *** * * ** ** **** **** *** *** * * * * ** * ** * * *
else *** ** * * * ** ***** * *** *
** ***** * *** * * * *** ** ** ** ***** * **** ** ******* ** ** * * ** * * ** * ***
else * ** * * ****** *
*** ** * *** * *** * ** * ** * * * *** * ** ** * ** **** ** * ** ** *** * **** * * * * * * * * **
** * *** * * * * * * if(q>10000000)
** * * ** ***** * ***** * ** * * * * * *** * * *** * **** * * ** * *** *** ** ** ********* ***
* *** * *** ********* * * 0;
}
answered
Oct 27, 2016
by
410323020
(
-85
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* * ** ** *
int main(void)
{
** ** * * * * * * i = 0,j = 0;
** * ******* * * * * ** * ***
* ** * * * * * > 10000000)
*** * **** ** ***** **
**** *** * **** ** * * 0.05)+ 520000 * 0.12+ **** *** ** * 0.3+4400000 * 0.4+(i -10000000) * 0.45;
* ** **** * ***** * * * * * * * * * * **** *
* ** * ** * * **
* ** *** ** * ** * if(i ** * * *
* *** *** * ***
* *** * * ** ******** ** **** ** * 0.05)+ 520000 * 0.12+ * * * * * ** * * 0.3+(i - 4400000) * 0.4;
** **** * * * *** ** *** ** ** * * ******
** *** * * ****** **
* * ** ** * * if(i > 2350000)
* * * *** *** * *
** * **** * ***** * ** ** * * 0.05)+ 520000 * 0.12+ ** **** * - 2350000) * 0.3;
* * ** * * *** ** * * * * * * *****
*** * * *** * *
* *** *** * ** if(i > 1170000)
* * ***** *** * *
*** * * ** ** ** * * * * 0.05)+ 520000 * 0.12+(i - 1170000)*0.2;
* *** ** ****** * * * * * * ** **** * *** * **** *
** ** *** * ** * *
* ** ** * * * * if(i > 520000)
* ** * *** * * *** **
**** **** ****** *** * ******** * ** * 0.05)+(i - 520000) * 0.12;
***** ***** ****** **** ************ * * * *** *
** * ***** * ** *
** *** * ** *
** * * * ** ******
* *** ****** ** * ** *
* * * * * * * *** * * ** * ** ** *** ***
** *** * * *
** * * ***** * ** *** 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()
{
int q;
** * **** * * ** *** *** * * ** ** *** * *
if ** ***** *** ** * * * *
* * *** ***** ** * * * * ** ***** * *** * * * ** * * * **** **
* * ** * ** * * * *** **** * ** * * * *** * * *****
* * * *** * * * * **** *** ****** ** * * ** ** * * * * *** *
else ** **** * ** *** ** ** **
*** ** * * ** ***** * *** * *** * *** * **** *** * ** *** * * *** ** * ** *
else * ** * * * ** * ** ** **** *
** ** ** *** ** * * * ** * ** * * ** * *** * ******* **** ** * * * * *** * ** * **
else * * ** *** * * ***** **** ** ** ** * *
** *** * * ** * ** * * ** * * * ** * *** * * ** ********* * * * ** * ******** * *** * *****
* *** *** * * ** *** if(q>10000000)
* ** * *** * * *** ** * ** * * * *** ** * ** * * * * * * **** ** ** * ** ** * *** *** * * **
*** * ** * ** * ** ** * * ** * 0;
}
answered
Oct 27, 2016
by
410323020
(
-85
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include ** * * ** *
* * ** * * *** * **
* ***** * * **** ***
int main(void)
{
***** *** **** * * * i = 0,j = 0;
**** * * ** ******* *** ** *** ***
*** ** * *** * > 10000000)
** **** * ** * ***
* * ** **** * * * * ** * ** * 0.05)+ 520000 * 0.12+ * * * * 0.3+4400000 * 0.4+(i -10000000) * 0.45;
** ** * * * * * ** * ** **** ******* **** *
*** * ** ** * *
* *** ** * ******* if(i * ** * * *
** *** * *** **
** ** * ** * ********** * * 0.05)+ 520000 * 0.12+ **** ** * * 0.3+(i - 4400000) * 0.4;
*********** ** * * *** ** ******* *** ** * * *
**** * * ***
* * *** ***** * * * *** if(i > 2350000)
****** * * *
** *** ** * * ***** ***** ****** * 0.05)+ 520000 * 0.12+ * *** ** - 2350000) * 0.3;
* *** ** *** *** ***** ** ** *** ** ** * **
*** **** * ** *
** * ** **** * **** if(i > 1170000)
* * ** *****
* * ******* ***** * * ** * 0.05)+ 520000 * 0.12+(i - 1170000)*0.2;
*** * * ** * * * *** * * * * * ******
* * * * *
* ** * *** *** if(i > 520000)
* **** ***
* * ******** ** ** * *** * * 0.05)+(i - 520000) * 0.12;
* * *** ** * * *** * * ** * ** **** ** ***
**** ** ** ** ***
**** ** * *
** ** * **
* ** * * * *** * *** *
*** ** ** * ** * ** ** ** * ** **** ** ** *
* * **** *
** * ***** * ** ***** 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!
** ****** * *
* ** ** * ** * ***
int main()
{
*** * * *** * ** * x, y;
* * * * * **** * **** * * * ***
** * ** *** ( x ***** 520000)
* * ** *** * * * * ** * ** = x * 0.05;
* * ** ** ** *** ******** * ******* if (x ** 1170000)
** * **** *** * ** * * * ** * ** * * * ** *** = (520000 * 0.05) + (x - 520000 ) * 0.12;
** ** * *** * * * * * *** * ** ** ** * * * * ** ** if (x *** * * * *
**** ** **** * * ** * * *** ** *** *** ** ** ******* ** ** * = (520000 * 0.05) + (650000 * 0.12) + (x - * * * 0.2;
*** * * * * * * * *** * **** ** * * *** * ** * **** * ** ******* * * if (x * * * * *
* ** * *** * *** ** ** * * * * * ** *** *** *** ** ****** ** * * * ** = (520000 * 0.05) + (650000 * 0.12) + (1180000 * 0.2) + (x - ** * * 0.3;
* * *** * * * ** *** * ** *** *** * * *** * * * *** * * ***** * * ** * * * * *** if (x ** **** * ***
** * ** *** *** * ***** * ** ** * *** * * ** * * ** ** ** * * *** ** * ** * * * ** = (520000 * 0.05) + (650000 * 0.12) + **** * 0.2) + ** *** * 0.3) + (x - 4400000) * 0.4;
*** * * * * * ** * * * * *** * *** ** * ** **** * ******** *** ** ******* * * ** *** * * * * if (x * * * *** * **
* * * * *** * * * *** **** * * * ** ** * ** *** * * ************* ** *** * * ****** * ** **** ** = (520000 * 0.05) + (650000 * 0.12) + (1180000 * 0.2) + (2050000 * 0.3) + (5600000 * 0.4) + (x - *** * 0.45;
** *** ** * * * ** * * ** * ** ** * *
* * * * *** * ** 0;
}
answered
Oct 27, 2016
by
410523009
(
180
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()
{
int q;
* * ** ***** * ** * ** * * ** ** * *****
if ** * * ** **** *** ** * *
* * * ** * * ** * ** * **** * * * * **** ** ***** *
* * * *** * *** * * * * * *** **** * * *
* * ** * ** ** * * ** **** **** **** ** * **** * ** ** *** *** *** *** * * **
else * *** ** ** * ** * * *** *
* * ** ** ** ** * * *** ** *** ** * * * * **** * * * * * * * *** ** ****** *
else ***** * ** ** * * * *
*** * * * ** * * ** ** ** ** * *** * ******** * * * *** * ** * * * **** **** * * * ****
else ** ** **** * * * ** * * **** *
* * * * *** ***** ** * * ** * * ****** * **** * * ** ** * ** * *** * * ** * ** * ***** ** ***
* **** ** ** **** ** * * if(q>10000000)
* **** * * * *** *** * * * * * ***** **** *** *** ** * ** * * ** * ** ** *** * * * * ****** *** **
** **** ** * * *** * ** 0;
}
answered
Oct 27, 2016
by
410323020
(
-85
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()
{
int a,b;
*** * ** * * * *** ***** * * **** ***
**** * *** * * * ** *** ***
*** * * * * * ** ** ** * ***** * ** *** *
** * * * *** *** * *** if(a<=1170000)
**** * * **** * ** * * * **** * ****** * * ***** ***** ** *** *** * *
* ** ** * *** * * * if(a<=2350000)
* ** *** ** ** * * * ** ** *** * ** * * * ** *** * * ****
else if(a<=4400000)
* * * * * *** *** * ** ****** * * *** **** * *** * **** * ** * **** *** *
** *** ***** * * ** * if(a<=1000000)
* * * ** * * * ******** * ******** ** **** * * * * * * * * ** * ** *
* ** ** ** ** ** ** *** ** if(a>1000000)
** *** ** * ** ** * * ** ***** * **** * *** *** ***** ** * ** * * * ** ****
** ***** * *** * **** * * ** * ********** **
**** * * ** ** ** **** ** * *** ***
* *** ** * * * ** ** 0;
}
answered
Oct 27, 2016
by
威
(
-124
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
* * * * ** **
*** *** * * * * *
int main()
{
* * * * * * * ** ** g,i;
* *** ** ** *** ***** ** * * * ** * *
** **** * * * * * * 520000)
**** ******** * * **
* *** ** **** * ** * *** = g * 0.05;
* *** * * * * * ** * * ** ** * **
* *** * * ** **** * * *
* ****** * ** * * * if(g ** * *
* *** * * * ** ****
** **** ** * * * * * * = 520000 * 0.05 + (g - 520000) * 0.12;
* ** ** * * **** **** **** * *
* *** * * * * * **
* **** * * * * **** ** if(g * 2350000)
*** * * *** * * ** * *
* *** * ** *** ** ** ** = 520000 * 0.05 + 650000 * 0.12 + (g - *** * 0.2;
* ***** * *** ** ** ***** * ** ** ** * *
*** * * ** **
* * ** * ** * ** *** * if(g * *
* * * ** ** ***
* * ****** ******* ** = 520000 * 0.05 + 650000 * 0.12 + 1180000 * 0.2 + (g - *0.3;
* *** * * * ***** * *** *** **
** * * *** * **** * *
* * **** * * * if(g ** ** * *
* * * * * * * **** *** *
* * * ** * * * * * = 520000 * 0.05 + 650000 * 0.12 + 1180000 * 0.2 + 2050000 * 0.3 + (g - ***** * 0.4;
** * * * *** ** * ***** * ** ** * * ***
** ****** ** ** * * *
* **** *** ** * ** * *
*** ** ******* * *** **
**** * ** * **** * = 520000 * 0.05 + 650000 * 0.12 + 1180000 * 0.2 + 2050000 * 0.3 + 5600000 * 0.4 + (g - ** * * 0.45;
** ** * * * * * ** * * * * * ** * *****
* ** ** **** * ** * * *** ***
* ** * * ** * * **** ***** **** 0;
}}
answered
Oct 27, 2016
by
s31102
(
-100
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
...
3
4
5
6
7
8
9
...
12
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.70.178.115
©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
|
835
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
|
2.7k
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.5k
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.5k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users