#include <stdio.h>
int main (void) {
float salary;
float income;
float tax = 0.0;
printf("Please enter your salary amount: ");
scanf("%f", &salary);
printf("Your income (in dollars): ");
scanf ("%f", &income);
if(salary >= 100000) {
if((income > 50000) && (income <= 100000))
//get 5% tax
tax = ((income / 100) * 5);
else if(income > 100000)
//get 7%
tax = ((income / 100) * 7);
}
printf("\n\nYour Total Tax Deductions Are : $%.2f\n", tax);
printf ("Your Total Amount After Tax Is : $%.2f\n\n", (income - tax));
return 0;
}