Pure Programmer

## Project: FICA Taxes (Empoyee and Employer)

As an employer you are responsible for withholding taxes and paying taxes assosciated with the employment of workers. An employer must withhold from the employee's paycheck Federal Insurance Contributions Act (FICA) is made up of two items, Social Security and Medicare taxes. For 2020, the Social Security tax rate is 6.2% on the first \$137,700 wages plus tips paid. The Medicare tax rate is 1.45% on the first \$200,000 wages and tips then 2.35% on wages and tips above \$200,000.

The employeer must then pay additional Social Security tax of 6.2% up to the wage plus tip limit of \$137,700. Additional Medicare taxes of 1.45% must be paied on all wages and tips. In addition Federal Unemployment Tax (FUTA) is 6.0% on the first \$7,000 earned. Write a program that computes the annual taxes for someone who earns wages and tips. The program should accept two command line arguments, an annual wages and total tips for the year. Print the annual earnings (wages + tips), employee Social Security tax, employee Medicare tax, employer Social Security tax, employer Medicare tax and employer FUTA tax. Then print the net earnings (annual wages plus tips minus employee taxes) and the net contributions paid by employeer (wages plus employer FICA plus employer FUTA).

Output
\$ g++ -std=c++17 FICA3.cpp -o FICA3 -lfmt \$ ./FICA3 60000 20000 Annual Earnings: \$80000.00 Social Security Tax: \$4960.00 Medicare Tax: \$1160.00 Employer Social Security Tax: \$4960.00 Employer Medicare Tax: \$1160.00 Federal Unemployment Tax: \$420.00 Net Earnings: \$73880.00 Employer Contributions: \$86540.00 \$ g++ -std=c++17 FICA3.cpp -o FICA3 -lfmt \$ ./FICA3 130000 10000 Annual Earnings: \$140000.00 Social Security Tax: \$7886.40 Medicare Tax: \$2030.00 Employer Social Security Tax: \$7886.40 Employer Medicare Tax: \$2030.00 Federal Unemployment Tax: \$420.00 Net Earnings: \$130083.60 Employer Contributions: \$150336.40 \$ g++ -std=c++17 FICA3.cpp -o FICA3 -lfmt \$ ./FICA3 210000 30000 Annual Earnings: \$240000.00 Social Security Tax: \$7886.40 Medicare Tax: \$3840.00 Employer Social Security Tax: \$7886.40 Employer Medicare Tax: \$3480.00 Federal Unemployment Tax: \$420.00 Net Earnings: \$228273.60 Employer Contributions: \$251786.40

Solution