Answer:
Step-by-step explanation:
#include <stdio.h>
int main() {
double income, tax;
/* get the income from the user */
printf("Enter your taxable income:");
scanf("%lf", &income);
/* calculate the income tax */
if (income <= 750) {
tax = income * 1/100;
} else if (income >750 && income <=2249) {
tax = 7.50 + (income * 2/100);
} else if (income >=2250 && income <=3749) {
tax = 37.50 + (income * 3/100);
} else if (income >=3750 && income <=5249) {
tax = 82.50 + (income * 4/100);
} else if (income >=5250 && income <=6999) {
tax = 142.50 + (income * 5/100);
}else if (income >=7000) {
tax = 230.00 + (income * 6/100);
}
/* print the result */
printf("tax due is $ %.2lf\\",tax);
return 0;
}