#include "stdio.h"
void main()
{
int x,profit = 0;
printf("please input bonus: %d");
scanf("%d", &x);
switch(x/100000)
{
case 0:
profit = x * 10%;
printf("profit is:%d\n",profit);
break;
case 1:
profit = 10000 + ((x - 100000) * 7.5%);
printf("profit is:%d\n",profit);
break;
case 2:
case 3:
profit = 17500 + ((x - 200000) * 5%);
printf("profit is:%d\n",profit);
break;
case 4:
case 5:
profit = 37500 + ((x - 400000) * 3%);
printf("profit is:%d\n",profit);
break;
case 6:
case 7:
case 8:
case 9:
case 10:
profit = 43500 + ((x - 600000) * 1.5%);
printf("profit is:%d\n",profit);
break;
default:
profit = 49500 + ((x - 1000000) * 1%);
printf("profit is:%d\n",profit);
break;
}
}