#include <stdio.h>
int main() {
int profit;
float bonus = 0;
scanf("%d", &profit);
const int thresholds[] = {100000, 100000, 200000, 200000, 400000, 1000000};
const float rates[] = {0.10f, 0.075f, 0.05f, 0.03f, 0.015f, 0.01f};
int remaining = profit;
...