// This program reads an income. Income under // 6000 greenbacks is taxed at 30 percent, and // income greater than or equal to 6000 greenbacks // is taxed at 60 percent. After reading the // income, the program prints the income and tax. #include using namespace std; const int cutoff = 6000; const float rate1 = 0.3; const float rate2 = 0.6; int main() { int income, tax; cout << "Income? "; cin >> income; if ( income < cutoff ) tax = rate1 * income; else tax = rate2 * income; cout << "Income = " << income << " greenbacks" << endl << "Tax = " << tax << " greenbacks" << endl; return 0; }