C programming question. Please help make your answer clear.
#include <stdio.h>
int main() {
const float standard_deduction = 4150.0;
const float single_exemption = 2650.0;
const float tax_rate = 0.15;
const int tax_year = 1997;
float income, tax;
printf("I'm going to calculate the federal income tax\n");
printf("on your %d income.\n", tax_year);
printf("What was your %d income in dollars?\n", tax_year);
scanf("%f", &income);
tax = income - standard_deduction + single_exemption * tax_rate;
printf("The %d federal income tax on $%.2f\n", tax_year, income);
printf("was $%.2f.\n", tax);
return 0;
}
i. 30000
ii. 40000
iii. 100000