Toggle navigation
Courses
Questions
Tags
Users
AD 20161027 期中考 6
0
like
0
dislike
2.8k
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 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 15427 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
reshown
Oct 27, 2016
by
Shun-Po
|
2.8k
views
comment
Please
log in
or
register
to add a comment.
41
Answers
0
like
0
dislike
Hidden content!
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
* * ***** ** ** * * * i=0,
***** * ** **** * ** *** * *** *
**** * ** ** ***** * *** * ****** ** **
* ** * * ** * * *** * ****** * * * *** **** **
* *** ** * * * ** ** * * * ** = i*5/100;
*** *** * * * *** * * * * * * ** *** ** * * * ** * * * ***
* * * ******* *** = ((i-520000)*12/100)+(520000*5/100);
* *** ** ** ** *** *** *** ** ** **** ** * * * *******
*** * ** * ** ** *** = * ***** ** *** ** **** * * *
* ** *** *** * * **** * ****** ** * *** *** ** ** ****
**** * *** ** **** **** = * ** *** * ** ** *** * *** *** **
**** * ** *** ** * ** * **** * * * * * ***** * ** *****
* *** ***** * ** ** * ** * = ****** * * *** * * * * ** *** *** * ** * ** *
** * ** * * * ** * * if(i>=10000001)
***** ** ***** ****** ** * * = ** * **** ** ** ** *** ** * * ***** * *** **** ** ** *
* * *** * * * * ** **** * ** ** *
** ** ******* * * * ** ** **** *** * ****
*** * ** * * * * * *** 0;
}
answered
Oct 27, 2016
by
410423016
(
-170
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 money;
** * ** ** * *** ** *** * input your money:");
***** ***** ** * * **** * * ****
** * ***** * * * *** * ** * ***
*** *** ** * * ** *** * * * * **** **** * * * *** ****
*** * *** * ** * **
* * * **** ** * ** * * * if(money<=1170000)
*** *** * * ** * **** ** * ** * ** **** ** * **
* * ***** **
** ***** *** * * * * ** if (money<=2350000)
** * **** *** *** * * *** ** * * * * * ** ** **** * * ** * *
* * * *** * *** * if (smoney<=4400000)
*** **** * **** ** * * ** * ** *** * * * * * * ** **
* * ** ** ** * **
* ** * **** ** *** if (money<=10000000)
* ** ** ** * ** * ** * * ** ** ** ** ** * * *** ****
** **** * * ** **** ***
* ** * ** * * * * ** * * if (money>10000000)
* ** ** * * **** * ** *** * ******** * * * * ** ****
** *** * * * * * ** * **** * *** ****
* * ** ** * * * * * 0;
}
answered
Oct 27, 2016
by
cityhunter0412
(
-30
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()
{
* * *** ** ** ***** ** ** n = 0 , tax = 0 ;
* *** **** * ** ** * ** * ** ** **
* ** ** ** ** * * **
** *********** *** ** * n <= 520000 )
* * *** *** * ** *
* ****** * * ** * * * *** * * *** ** * * * = n * 0.05;
* * * * * * * * **** * * * **** *** * * * * **
* * *** ** * * ***** * * * * * ** **** * * **** ** ** ***
* * ** ********* *** *** **** * **** ** * **** 0;
** * ** * * * ** * ** *
* ** * *** ** * n <= 1170000 )
* ** * * * *
* * * * * * * * * * ** ** * ** * ** * * = 520000*0.05+ (n-520000)*0.12;
* * ** *** *** * ** ****** * ** * ** * ******* * ** * * * *** **
** *** *** * * ** *** ** ** *** *** * * ** **** ** ** *** ***
** * ** ** *** * * * * ***** *** * ** 0;
* * *** * *** * *
* ** ** *** ** * n <=2350000 )
******* ** * * **** *
** * *** * * *** ***** * * ** * * ** ** * = 520000*0.05+ (1170000-520000)*0.12+ (n-1170000-520000)*0.2;
** * ** * * * * ** * ** *** ** * * ** * * * * * * ** **
** **** ** ** ** ** * * * ****** * * ** * * *** * * *** *
* * * * *** ** * ** * * * * ***** * * ** * * 0;
**** * * ** ***
*** *** ****** ** * *** n <= 4400000 )
**** * * ******* * ** ***
* * * * * * *** ** ***** * ****** *** ** *** *** = 520000*0.05+ (1170000-520000)*0.12+ (2350000-1170000-520000)*0.2 + (n-2350000-1170000-520000)*0.3;
* * * ** * * ***** *** *** * * *** * **** ***** * ** **
* ** * *** * ** ** ** * * * * * * * ** * * *** **
**** * ** ** * *** ** * ** * ** * * ** **** ** * * 0;
** ** * * * * *****
** * * **** * * * **** n <= 10000000 )
* **** * * ******** * ** ***
* ** **** * ** ** * ** **** * ** *** * *** ** = 520000*0.05+ (1170000-520000)*0.12+ (2350000-1170000-520000)*0.2 + (4400000-2350000-1170000-520000)*0.3 + (n-4400000-2350000-1170000-520000)*0.4;
** * * * * ** ** *** * ** ** * * ****** * ********* ** ** * **
** * *** * * **** * * ** *** **** * ** ** * ** * *** *** *
** ** ** * * ** ** * ******** ** *** * 0;
** *** ***** * *** ** **
* ***** * ** ** *** * * = 520000*0.05+ (1170000-520000)*0.12+ (2350000-1170000-520000)*0.2 + (4400000-2350000-1170000-520000)*0.3 + * ** * ** ****** * * + * *** ***** * * * * *
* *** * * * * * * *** ** * ****** * ** *
**** ******** **** * *** *** * *** ** **
*** *** * * * ****** * * * 0;
}
answered
Oct 27, 2016
by
Phoenix666
(
-162
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()
{
***** * * * * * ** x=0,i=0;
* * * ***** ** ** * * *
*** *** *** * * * * **** ****** *
* * ** **** * * * **
* * *** *** * ** ** ** (x<=520000)
* * ** *** * ** * *
* ****** *** ** * ** ***** *
* ** *** * * *** * * ** **
** **** **** * ** * * * if(520001<=x<=1170000)
* * * * * **** *** **** *
**** * **** * * * ** * ***** ** * *** *
* ****** ** * **** *
*** ** * ** * * * * *** if(1170001<=x<=2350000)
* ***** * * * ** **
* ****** * ** ** * ******* *
** *** * * * ** * * * if(2350001<=x<=4400000)
* ** ** ** * *
*** ** * * * * **** * *** * ** * * *
*** *** ** ********** *
* ******* ** * * **** if(4400001<=x<=10000000)
** * ** * * *** ** * ****
*** * * * * **** ** **
** ** * *** ** ***** * *
** * * * * *** * * * if(10000001<=x)
**** ** * ***** ********
* ** ******* * * ** * * ****** ** ** **
** *** ** ** **
* * ** *** * **
** * ** * * ****
* *** * ** ** * * * * *** * *
** ** ***** ** *** * *
* * ** ** * *** * ** ** * * * * * ****
** ******* *** *** **** ** ** 0;
*** *** * * * *
}
answered
Oct 27, 2016
by
410523005
(
122
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * *** * ***
#include * ** * * * * *
int main()
{
* ** * * num;
*** **** ** ** **** **** * **** ** &num);
*** ** *** * *
*** * * * * * * ** >= 10000001)
*** ** ***
* ** ** * * ** * * ***** ** = * * ** ** * * 0.45;
** ****** * * * *
***** * ** *** *** if (num >= 4400001)
**** * ** * ** **
***** ** * * * * ** ****** = * *** * ** * * 0.4;
* * ** * * *** *
* * * * * *** * if (num >= 2350001)
** * * * ** * *
**** * * * ** *** *** ** *** = *** ** ***** * ** *0.3;
* **** * ***** *
** * * * ** *** * if (num >= 1170001)
** * * ****
* * * **** * *** ** * * * = ** ** * * * *0.2;
* * * * *** * **
*** ** * * ** ** * * if (num >= 520001)
* * * *
* * * ***** *** ****** * ******** = ** ** * * * *0.12;
** ** *** * * **
*** * * ** * if(num >= 0)
* * ** * ***
** ** ** * ** * = num *0.05;
****** * ** * **
*** * * * * ** * *********** * **
* ** ** ** ** ** * * *
** * *** ** * ** ***** * *** * **** num);
** ** * *** * * * * ** ******** ***
* ** * ***** **** 0;
}
answered
Oct 27, 2016
by
610537002
(
-110
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include ***** ** **
#include ** *** ** *
int main()
{
** *** * *** * * ***** num;
*** ***** ** * ** ***** ** *** * ** &num);
** ** *** * ** *
**** ***** ** >= 10000001)
*** * **** ****
**** * *** * * ***** = ** * * * 0.45;
** * ******* * ** *
** ******* ** if (num >= 4400001)
* ** * * **** ***
* * **** * *** *** * *** = ***** ** * * * 0.4;
*** * **** ***** *
***** * * * * * ** if (num >= 2350001)
* ** * *** * * * * **
* *** * * *** * *** *** ******* = * *** *** ** * * *0.3;
*** * * * ** * *
*** * * * **** ** * if (num >= 1170001)
** * *** *
* * * * * * * * = * ** *** ** * *0.2;
**** *** ** * **
* * ** * * * * * * if (num >= 520001)
* ** ** **** * * * *
** ** * ** ** ** * ** * ** * * = ** * * ** *0.12;
** * *** * **
* ***** *** * * * if(num >= 0)
* * * * **** * ** *
* * * * * *** **** = num *0.05;
** * ** ** *
* * * ** * * * ** * * * * *****
** * **** * * * * *
*** ** ***** * ****** * ** * * * num);
***** * * ***** *** * ** * ** * * ***
** * *** ** **** * 0;
}
answered
Oct 27, 2016
by
610537002
(
-110
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include ** * * ** **
#include ** *** *****
int main()
{
** *** * * ** * *** num;
* * * * * * ** * ** ** * * ** * * * &num);
* **** *********
* **** ** * * >= 10000001)
* **** ***
* * ** ** **** * * *** ** * = *** ** * 0.45;
** *** * *
* **** ** * if (num >= 4400001)
* * ** ** ** *
* * * * *** * * **** *** * * = ** * ** *** * * 0.4;
* ** *** * *
* ** *** ** * * if (num >= 2350001)
* ** * ** ** *** ****
* *** * * **** * * * = * ** * ** * ** *0.3;
** * ** *** ***
* ***** ***** *** ** if (num >= 1170001)
* ****
* *** * ** ****** *** = * * **** ** ** *0.2;
** *** * * *****
* ** * * ** ** ** if (num >= 520001)
* * ****** **** **
** * ** *** *** ** ** * = *** * * * *** *** *0.12;
** * **
* ** **** ****** * if(num >= 0)
* ** ** ** * ***
* ** *** ** *** = ** * * *0.05;
**** *** **** **
* * ** **** * * * * * * *** *
** * *** * ****** * ****
** ** ** ** * ** ** ** **** * * num);
** * * * ** ** * * ** ** ** *
* ** * ** ** **** * 0;
}
answered
Oct 27, 2016
by
610537002
(
-110
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include *** * * *
#include * *** ** * **
int main()
{
* * * * ** * *** *** ** num;
* * ****** * * * ****** *** &num);
* ** * *** * *
** * * * ** ** * >= 10000001)
* * ***** *** **** *
** ***** * **** ***** *** * = ****** ** ** * * 0.45;
* * * *** ** * ***
******* * ** * * if (num >= 4400001)
***** *** * **
** ** ** * ** *** * **** ** * ** = ** * ** ** * 0.4;
** * * * *****
**** ** *** ** * *** if (num >= 2350001)
* ** ** * **
* *** * * * * *** * * **** * ** = * * ** *0.3;
** * * *** * *
* *** * * * ** * * if (num >= 1170001)
** **** ** ** *
** * **** ** ** ******** ** * *** * = * * ** * ** *0.2;
*** ** * ** **
***** * ** ** *** * if (num >= 520001)
** *** * * ** * ** **
**** *** * * *** ** **** = * ** * * ** *** *** * *0.12;
*** * ** * ****
* * **** ** * * if(num >= 0)
***** *** * *
** * * * * * * * = * * ***** *0.05;
** * ** * * * *
* ** * *** * * * * * * *** *
* * * ** * * ** * **
***** *** * **** * * ** * ** num);
* ** * ** * ** * ** * * * ***
** *** *** * ** ** ** * * 0;
}
answered
Oct 27, 2016
by
610537002
(
-110
points)
ask related question
comment
Please
log in
or
register
to add a comment.
0
like
0
dislike
Hidden content!
#include * ** **
#include ** *** * *
int main()
{
*** **** ** * * num;
* * ***** * * * * * ** *** * * &num);
*** * ** ***** ****
** * **** * * ****** >= 10000001)
** * ** * ** *
** ** ** ** * * * * ** * = * * * * ***** * 0.45;
*** ** * * **
****** * ** * * ** if (num >= 4400001)
*** * * * * **
***** * ** * ***** ******** = ** **** *** * * * 0.4;
*** ** ****
* * * **** ** * * ** * if (num >= 2350001)
** ** ** ** ** *
* ** ***** * **** *** * * ** = * ** ** * * *0.3;
* * *** ***
* * * ***** * * if (num >= 1170001)
**** * * * * ** * * *
* ****** *** * ** * ****** * * = *** * ** *0.2;
**** * * ** * *
** * * ** * *** * * if (num >= 520001)
** ****** * * * * * *
* *** *** * ** * ******* * = **** ****** ** *0.12;
**** * * * * ** *
** * **** ** **** ** if(num >= 0)
* * ***** *
* *** ** *** = * * ** * ***** * *0.05;
* * ** * *
** * ** ** * ** ** ** ** * *
**** * * ** * * ***** * *
* ****** ** * * *** * ** *** num);
* ** ** *** * ** ** * * **
*** * *** * *** ** * 0;
}
answered
Oct 27, 2016
by
610537002
(
-110
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 (void)
{
** * * * ** * * * ** i=0,
******** * *** ** ** *** * * * * * *
** ***** ** ** ** * **** * *** * **** *** ** ***
* * *** * * ** * * ** * ******* ** **** *** * *
** * * *** *** * ** = i*5/100;
* * * *** * * ** * * * * ** * **** ** ** * * * ** ** *
****** *** * ** ** *** * = ((i-520000)*12/100)+(520000*5/100);
* * * ** * * ** ** **** ***** *** * * * ** * * * *****
* ** ** ** ** ** = **** **** * *** *** ** **
* * ****** **** * *** ** **** * * * ** * * * ****
* * * ** ** * * * * ** = * * * *** ***** * * ***** ***** **
* ** * ** *** ** * ***** ** * ** * * * * * ** *** ** ***** **** **
** * * *** * *** *** = * *** ** * * * * ** * * * * **** *** * **
* ****** * ** *** ** * if(i>=10000001)
* ** * * ***** ** = * ** * ** * * * * * * *** * ***** *** * * * * * ***
*** *** * ** ** * *** * * **** * *** ***** **
* * **** * *** ** * * * * * ** **
** ** * ** **** * ** * * ** 0;
}
answered
Oct 27, 2016
by
410423016
(
-170
points)
ask related question
comment
Please
log in
or
register
to add a comment.
Page:
« prev
1
2
3
4
5
next »
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English
中文
Tiếng Việt
IP:172.71.254.33
©2016-2025
Related questions
0
like
0
dislike
5
answers
AD 20161027 期中考 10
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 15448 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
640
views
0
like
0
dislike
33
answers
AD 20161027 期中考 9
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 15445 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
2.3k
views
0
like
0
dislike
11
answers
AD 20161027 期中考 8
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 15441 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
1.1k
views
0
like
0
dislike
73
answers
AD 20161027 期中考 7
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 15439 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
4.1k
views
0
like
0
dislike
28
answers
AD 20161027 期中考 5
[Exercise]
Coding (C)
-
asked
Oct 27, 2016
in
2016-1 程式設計(一)AD
by
Shun-Po
(
18k
points)
ID: 15421 -
Available when:
2016-10-27 18:30:00
-
Due to:
2016-10-27 21:00:00
|
2.2k
views
12,783
questions
183,442
answers
172,219
comments
4,824
users