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>
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()
{
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!
#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!
#include ** ******
int main()
{
* ** ** *** * * n=0 ;
** * *** * *** ** * ** ** * * ;
****** ** ** ** * * ans=0 ;
* ** ** * *
*** ** * * **** ans += n*5/100 ;
* *** ** **** **** * * if ** ** * *** * *** * * ** ; ans **** * * ;}
****** ** **** *** * * ** *** * if * * * *** * ***** ; ans +=1170000*12/100 ;ans * ** **** * ** ;}
*** * ** ** ***** **** * * **** ** * if * * *** * * ; ans +=1170000*12/100 ;ans * * ** * * **** ** ** ;}
*** * ** ***** **** * * * * * * *** ** * * * * * * * *** * ; ans * * ;ans +=2350000*20/100 ;ans **** *** * * **** *** ******** *** * ;}
******** **** *** ***** ** * * * ** ****** * * ** ** ; ans * *** * ;ans * * ** *** ;ans +=4400000*30/100 ;10000000*40/100 ** * ** * * * *** ;}
*** ** * * * ** ** * * *** * ** **** * ** ;
* * *** *** ****** * ** 0 ;
}
answered
Oct 27, 2016
by
luxinyu
(
-88
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
** * ** * *
** * * **
int main()
{
** ****** * * * * *** * * i , o ;
* *** * ******** * * * ** * ** * ** * , ** ** * );
* *** ** * * ** * * * * * * 520000)
* * ** ** ** * * * *
* * ***** * *** *** * * ** * *** ** * * ** * * = i*0.05;
** * ** *** ** * ** **** *** *** * *** * * , o);
* ** ** * * * * ** ** **
* **** ** **** ** * *** if(i ** * 520001 || i *** ** *
*** * * *** * **
* ** *** * * * * * ** * * *** ** ** * = (i - 520000 + 1) * 0.12 + 520000 * 0.05;
*** ** *** * * ** ** ***** * * **** **** ** * **** * ** *** , o);
* * ***** **** *
* * * * *** * *** if(i ** * || i * ** ** ** *
** * ***** * * *** * ****
** * ** * * ** * * * * * * **** ** * = (i - 1170000 + 1 ) * 0.2 + 650000 * 0.12 + 520000 * 0.05;
* * * ** * * * * * * ** * * * *** ** * * ** , o);
* * ** *** ** * ** **
** * * * ** ***** ** ** ** if(i * * * * || i ** **
*** * * **** ** ***
** * ** ** * ***** * * *** ** * * * = (i - 2350000 + 1) * 0.3 + 1180000 * 0.2 + 650000 * 0.12 + 520000 * 0.05;
** ** *** ***** * *** **** * ** * ** ** ***** * ** ** , o);
*** * * * ** **
* ******* ** ** * ***** if(i ** 4400001 || i ** * ******
*** ** * ** * ** *****
** * * *** * **** * * ** * ** * * ** = (i - 4400000 + 1) * 0.4 + 2050000 * 0.3 + ** * 0.2 + 650000 * 0.12 + 520000 * 0.05;
* * * * * *** * *** *** * * ** ** ** * * * *** * , o);
** ** *** * * *** *
** **** ** * ***** ** * ** * if(i * **** **
** * ** * ** ** ***
* ** * ***** **** * **** *** *** * *** = (i - ** *** + 1) * 0.45 + 5600000 * 0.4 + 2050000 * 0.3 + 1180000 * 0.2 + 650000 * 0.12 + 520000 * 0.05;
* *** ** ** * * * **** ** **** * * * * * ** * ** * ** ** , o);
*** * * * ** ******* *
* ******* ** * ** * 0;
}
answered
Oct 27, 2016
by
410211222
(
-186
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 ** * * * * *
int main()
{
* ** *** * ** ** ** ** n=0 ;
* * * * * * ** **** * *** * * *** ;
** * ** * ** * * * ans=0 ;
**** * ** *** ** ** ** ans += n*5/100 ;
*** * * * ***** if * * * **** * *** ** *** ; ans *** * *** ;}
* * * ** * ** **** * * if ** *** * * * * ; ans *** *** * ;ans * * ** ** ** * ;}
** ******** *** * * * **** * ****** if **** ** * ** ** ; ans ** * ;ans ** *** * ** * ** ** * * ** ** ;}
***** * *** * * *** * ** * * ** * *** * * * ** ** * ** * * ; ans +=1170000*12/100 ;ans +=2350000*20/100 ;ans * * **** * *** ** * ** ** * ;}
**** * *** * *** *** *** * *** * ** * ********* * * * ** ; ans * ** *** ;ans * * *** * * ;ans +=4400000*30/100 ;10000000*40/100 *** ** **** ** * * * ** * * * ;}
** ** ** ************ *** * **** ** *** *** ;
*** ** * ** ** * * 0 ;
}
answered
Oct 27, 2016
by
luxinyu
(
-88
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 );
** **** **** * * ***** ** * <= 520000)
** * ** **** * * ***********
* * * ** * * * ** ***** * ** ** * * = i*0.05;
** *** * *** * ** * ** * * ***** * * * * * * * ** * , o);
**** * ** * ** * *
**** ***** ** *** ** ** * * if(i >= 520001 || i <= 1170000)
**** ** *** *** * **
** ** * * * ** ***** ** * * ******** *** **** = (i - 520000) * 0.12 + 520000 * 0.05;
** * ** * * * * * *** ***** * ** ** ** ** * * ***** * * , o);
** * * * ** ** ***** * * * **
* * * * * ** * * * * * * * if(i >= 1170001 || i <= 2350000)
*** ***** ** * * *
* * ** * ** * ** * * * ** * ** **** = (i-1170000)*0.2+650000*0.12+520000*0.05;
* * * *** * **** * *** * * * * ** * ** * *** * ** * *** *** ** * * , o);
* *** * * ** * *
* *** * * **** * ** * if(i >= 2350001 || i <= 4400000)
** *** ***** ** * ** **
* * * * * * *** *** * * ** * * = ****** ** ***** ** ** ***
**** **** * *** * ***** * * *** * ** ** **** *** **** * *** *** , o);
*** *** ** * **
* * * **** ***** * * * *** if(i >= 4400001 || i <= 10000000)
* *** *** ****** * ** * **
** ** ***** * *** ** * * * * ** **** * *** * * = *** * * ** *** ** * **** *** * **
* *** * ** * * **** ** **** ** ** *** * ** ** * *** * , o);
** * ** * **** ** ** ** *
** *** * * ** * *** ** if(i >= 10000001)
* *** * ** * **
****** * * *** ** ** **** ***** * ** ** ** * = ** ** * * *** ** ** **** * * ****
** ** * *** *** ***** **** ****** * ** **** * * * * *** * ** , o);
* * *** ** * ***
* * * ** ** ***** * * 0;
}
answered
Oct 27, 2016
by
410211222
(
-186
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.
Page:
« prev
1
2
3
4
5
...
12
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.69.58.232
©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
|
919
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