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

PROGRAMMING:Bonus

Luz5年前 (2021-05-10)题库453
###Task description
```
The bonus paid by the enterprise is based on the profit commission.
When the profit (I) is less than or equal to 100000 yuan, the bonus can be increased by 10%;
When the profit is more than 100000 yuan and less than or equal to 200000 yuan, 7.5% of the profit is higher than 100000 yuan; and so on,
When the amount is between 200000 and 400000 yuan, the portion higher than 200000 yuan can be deducted by 5%;
When the amount is between 400000 and 600000 yuan, the portion higher than 400000 yuan can be deducted by 3%;
In the range of 600000 to 1000000 yuan, 1.5% can be deducted for the part higher than 600000 yuan;
When it is higher than 1 million yuan, the part exceeding 1 million yuan will be charged with 1% commission. Enter the profit I of the current month from the keyboard, and calculate the total amount of bonus to be paid?
```
###Input format:
```
Input for several groups of data, each group of 1 integer, a single line, representing run value.
```
###Output format:
```
The output is a number of lines, each line has an integer, corresponding to the number of funds in the input line. The result only keeps the integer.
```
###Input example:
```in
five hundred thousand
one million and two hundred thousand
```
###Output example:
```out
thirty thousand and five hundred
forty-one thousand and five hundred
```






answer:If there is no answer, please comment