-->
当前位置:首页 > 题库

PROGRAMMING:Calculation of personal income tax

Luz5年前 (2021-05-10)题库440
Suppose that the personal income tax is: tax rate $$(wages $$- $$1600). Please write a program to calculate the income tax payable, in which the tax rate is defined as:
-When the wage does not exceed 1600, the tax rate is 0;
-When the wage is in the range (1600, 2500), the tax rate is 5%;
-When the wage is in the range (2500, 3500), the tax rate is 10%;
-When the wage is in the range (3500, 4500), the tax rate is 15%;
-When wages exceed 4500, the tax rate is 20%.
###Input format:
The input gives a nonnegative wage on one line.
###Output format:
Output personal income tax in one line, accurate to 2 decimal places.
###Input sample 1:
```in
one thousand and six hundred
```
###Output sample 1:
```out
zero
```
###Input sample 2:
```
one thousand six hundred and one
```
###Output sample 2:
```
zero point zero five
```
###Input sample 3:
```
three thousand
```
###Output sample 3:
```
one hundred and forty
```
###Input sample 4:
```
four thousand
```
###Output sample 4:
```
three hundred and sixty
```
###Input sample 5:
```
five thousand
```
###Output sample 5:
```
six hundred and eighty
```






answer:If there is no answer, please comment