#include<iostream>
using namespace std;

int main()
{
	const double GROSS = 78000;             // gross salary
	const double SS_TAX_PERCENT = .103;     // social security tax for the first $65,000
	const double FED_TAX_PERCENT = .28;     // federal tax over $30,000
	const double STATE_TAX_PERCENT = .093;  // state tax of total gross

	double ss_tax;
	double fed_tax;
	double state_tax;

	// ****  social security tax  **** //
	
	ss_tax = 65000 * SS_TAX_PERCENT;

	// ****  federal tax  **** //

	fed_tax = 3500 + FED_TAX_PERCENT*(GROSS - 30000);

	// ****  state tax  **** //

	state_tax = STATE_TAX_PERCENT * GROSS;

	cout.precision(2);
	cout.setf(ios_base::fixed, ios_base::floatfield);

	cout << "==================================\n";
	cout << "Gross salary = $" << GROSS << "\n";
	cout << "Social security tax = $" << ss_tax << "\n";
	cout << "Federal tax = $" << fed_tax << "\n";
	cout << "State tax = $" << state_tax << "\n";
	cout << "----------------------------------\n";
	cout << "Net income = $" << GROSS - (ss_tax + fed_tax + state_tax) << "\n\n"; 

	return 0;
}