#include #include void main (void) { short married; double income; cout << "\n\nEnter the number of your filing status :\n[1]Single\n[2]Married\n --> "; cin >> married; cout << "Please enter your taxable income --> "; cin >> income; if (married == 1) { if (income > 96900) income = income * 0.31 + 21919; else if (income > 40100) income = income * 0.28 + 6015; else income *= 0.15; } else { if (income > 58150) income = income * 0.31 + 13162; else if (income > 24000) income = income * 0.28 + 3600; else income *= 0.15; } cout << setprecision (2) << setiosflags(ios::showpoint|ios::fixed); cout << "Your tax is $" << income << "\n\n"; }