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

PROGRAMMING:How to pay bonus according to profit commission

Luz5年前 (2021-05-10)题库480
Enterprises pay bonus according to profit commission. When the profit is less than or equal to 100000 yuan, the bonus can be raised by 10%; When the profit is higher than 100000 yuan and lower than 200000 yuan, the part below 100000 yuan will be charged with 10% commission, and the part above 100000 yuan will be charged with 7.5% commission; When the amount is between 200000 and 400000 yuan, the portion higher than 200000 yuan can be deducted by 5%; If it is between 400000 yuan and 600000 yuan, the Commission will be 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 of the current month from the keyboard, and calculate the total amount of bonus to be paid?
###Input format:
Enter a profit integer. For example, enter 120000.
###Output format:
Output a real number. For example: 11500.0.
###Input example:
Here is a set of inputs. For example:
```in
one hundred and twenty thousand
```
###Output example:
The corresponding output is given here. For example:
```out
eleven thousand and five hundred
```







answer:If there is no answer, please comment