The program should calculate and display the amount of federal
withholding tax (FWT) to deduct from the weekly gross pay.
a. The amount of FWT is based on the employee’s weekly
taxable wages and filing status, which is either single (including
head of household) or married. The program will need to calculate
the weekly taxable wages by first multiplying the number of
withholding allowances by $76.90 (the value of a withholding
allowance in 2015) and then subtracting the result from the weekly
gross pay. For example, if your weekly gross pay is $400 and you
have two withholding allowances, your weekly taxable wages are
$246.20, as shown in Figure 12-21.
b. You use the weekly taxable wages, along with the
filing status and the appropriate weekly Federal Withholding Tax
table, to determine the amount of FWT to withhold. The weekly tax
tables for 2015 are shown in Figure 12-22. Each table contains five
columns of information. The first two columns list various ranges,
also called brackets, of taxable wage amounts. The first column
(Over) lists the amount that a taxable wage in that bracket must be
over, and the second column (But not over) lists the maximum amount
included in the bracket. The remaining three columns (Base amount,
Percentage, and Of excess over) tell you how to calculate the tax
for each range. For example, assume that you are single and your
weekly taxable wages are $246.20. Before you can calculate the
amount of your tax, you need to locate your taxable wages in the
first two columns of the Single table. Taxable wages of $246.20
fall within the $222 through $764 bracket. After locating the
bracket that contains your taxable wages, you then use the
remaining three columns in the table to calculate your tax. In this
case, you calculate the tax by first subtracting 222 (the amount
shown in the Of excess over column) from your taxable wages of
246.20, giving 24.20. You then multiply 24.20
by 15% (the amount shown in the Percentage column), giving 3.63.
You then add that amount to the amount shown in the Base amount
column (in this case, 17.80), giving $21.43 as your tax. The
calculations are shown in Figure 12-21 along with the calculations
for a married taxpayer whose weekly taxable wages are
$1,659.50.
c. If necessary, create a new project named Advanced29
Project and save it in the Cpp8\Chap12 folder. Enter your C++
instructions in a new source file named Advanced29.cpp. Store each
tax table in its own two-dimensional array. Be sure to enter
appropriate comments and any additional instructions required by
the compiler. Test the program appropriately.
Taxable wage calculation Gross wages $ 400.00
Allowances – 153.80 (2 withholding allowances * 76.90)
Taxable wages $ 246.20
Married with weekly taxable wages of $246.20 taxable
wages of $1,659.50
Single with weekly
Taxable wages Of excess over
Percentage
Base amount Tax
$ 246.20 – 222.00 24.20 * 0.15 3.63 + 17.80 $
21.43
$ 1,659.50 – 1,606.00 53.50 Percentage * 0.25 13.38 +
198.
gle person (including head of household)
If the taxable wages are: The amount of income tax to
withhold is:
Over But not over
$44 $44$222
Base amount Percentage
0 0 10% $ 17.80 plus 15% $
99.10 plus 25% $ 355.35 plus
28% $ 886.23 plus 33% $2,296.32
plus 35% $2,307.52 plus 39.6%
Of excess over
$44 $ 222 $ 764 $1,789 $3,685 $7,958 $7,990
$ 222 $ 764 $1,789 $3,685 $7,958 $7,990
$ 764 $1,789 $3,685 $7,958 $7,990
Married person
If the taxable wages are:
Over
$ 165 $ 520 $1,606 $3,073 $4,597 $8,079 $9,105
The amount of income tax to withhold is:
But not over
$ 165 $ 520 $1,606 $3,073 $4,597 $8,079 $9,105
Base amount
Percentage Of excess over
10% $ 165 15% $ 520 25% $1,606
28% $3,073 33% $4,597 35%
$8,079 39.6% $9,1
//This code in c++
#include<iostream>
using namespace std;
int main()
{
double baseAmount = 0, percentage = 0.0, ofExcessOver
= 0.0;
double taxableWage = 0.0,tax=0.0;
const double withHoldingAllowence = 76.90;
double grossWage = 0;
int numberOfAllowences;
char r_status;
cout << "You are Married or Single(M/S):
";
cin >> r_status;
cout << "Enter your gross wages: ";
cin >> grossWage;
cout << "Enter number of allowences: ";
cin >> numberOfAllowences;
taxableWage = grossWage -
(numberOfAllowences*withHoldingAllowence);
if (r_status == 'S' || r_status == 's')
{
//for single person
if (taxableWage >= 0 &&
taxableWage <44)
{
tax = 0;
}
else if (taxableWage >= 44
&& taxableWage < 222)
{
baseAmount =
0;
percentage =
0.10;
ofExcessOver =
44;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 222
&& taxableWage < 764)
{
baseAmount =
17.80;
percentage =
0.15;
ofExcessOver =
222;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 764
&& taxableWage < 1789)
{
baseAmount =
99.10;
percentage =
0.25;
ofExcessOver =
764;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 1789
&& taxableWage < 3685)
{
baseAmount =
355.35;
percentage =
0.28;
ofExcessOver =
1789;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 3685
&& taxableWage < 7958)
{
baseAmount =
886.23;
percentage =
0.33;
ofExcessOver =
3685;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 7958
&& taxableWage < 7990)
{
baseAmount =
2296.32;
percentage =
0.35;
ofExcessOver =
7958;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else
{
baseAmount =
2307.52;
percentage =
0.396;
ofExcessOver =
7990;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
}
if (r_status == 'M' || r_status == 'm')
{
//For married person
if (taxableWage >= 0 &&
taxableWage < 165)
{
tax = 0;
}
else if (taxableWage >= 165
&& taxableWage < 520)
{
baseAmount =
0;
percentage =
0.10;
ofExcessOver =
165;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 520
&& taxableWage < 1606)
{
baseAmount =
35.50;
percentage =
0.15;
ofExcessOver =
520;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 1606
&& taxableWage < 3073)
{
baseAmount =
198.40;
percentage =
0.25;
ofExcessOver =
1606;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 3073
&& taxableWage < 4597)
{
baseAmount =
565.15;
percentage =
0.28;
ofExcessOver =
3073;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 4597
&& taxableWage < 8079)
{
baseAmount =
991.87;
percentage =
0.33;
ofExcessOver =
4597;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else if (taxableWage >= 8079
&& taxableWage < 9105)
{
baseAmount =
2140.93;
percentage =
0.35;
ofExcessOver =
8079;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
else
{
baseAmount =
2500.03;
percentage =
0.396;
ofExcessOver =
9105;
taxableWage =
taxableWage - ofExcessOver;
taxableWage =
taxableWage*percentage;
taxableWage =
taxableWage + baseAmount;
tax =
taxableWage;
}
}
cout << "Tax: $" << tax <<
endl;
//to hold the output screen
system("pause");
}
//output
//if you need any help regarding this solution............. please leave a comment...... thanks........
The program should calculate and display the amount of federal withholding tax (FWT)...
Percentage Method Tables for Income Tax Withholding TABLE 1-WEEKLY Payroll Period $0 (a) SINGLE person (including head of household)- (b) MARRIED person- If the amount of wages If the amount of wages (after subtracting The amount of income tax (after subtracting The amount of income tax withholding allowances) is: to withhold is: withholding allowances) is: to withhold is: Not over $44......... $0 Not over $165 ......... Over But not over- of excess over-Over- But not over- of excess over- $44...
Assume a tax rate of 6.2% on $118.500 for Social Security and 145% for Medicare. No one will reach the maximum for FICA. Complete the following payroll register. Use the percentage method to calculate FIT for this weekly period.) (Use Table 9.1 and Table 9.2). (Do not found intermediate calculations and round your final answers to the nearest cent.) FCA Mr aus Allowances claimed 4 Employee Pat Brown Natpay Gross pay 54.000 Med S21S M 5 Payroll Period Weekly Biweekly...
Federal Income Tax Withholding Bob Dunn's weekly gross earnings for the present week were $2,550. Dunn has four exemptions. Using the wage bracket withholding table in Exhibit 2 with a $75 standard withholding allowance for each exemption, what is Dunn's federal income tax withholding? Round your answer to two decimal places. Table for Percentage Method of Withholding WEEKLY Payroll Period EXHIBIT 2 Wage Bracket Withholding Table ....$0 (a) SINGLE person (including head of household) - If the amount of wages...
Federal Income Tax Withholding Bob Dunn's weekly gross earnings for the present week were $2,440. Dunn has four exemptions. Using the wage bracket withholding table in Exhibit 2 with a $75 standard withholding allowance for each exemption, what is Dunn's federal income tax withholding? Round your answer to two decimal places. $ Table for Percentage Method of Withholding WEEKLY Payroll Period (a) SINGLE person (including head of household) - If the amount of wages (after subtracting withholding allowances) The amount...
Len Mast earned $2,950 in the last 2 weeks. He is married, is paid biweekly, and claims 3 exemptions. What is Len's FIT? Use the percentage method. (Use Table 71 and Table 7.2). (Round your answer to the nearest cent.) FIT Payroll Period Weekly ................ Biweekly .... Semimonthly ... Monthly Quarterly ..... Semiannually ......... Annually ......... Daily or miscellaneous (each day of the payroll period).. One Withholding Allowance $ 76.90 153.80 166.70 333.30 1,000.00 2,000.00 4,000.00 15.40 Percentage Method Tables...
Federal Income Tax Withholding Bob Dunn's weekly gross earnings for the present week were $2,580. Dunn has three exemptions. Using the wage bracket withholding table in Exhibit 2 with a $75 standard withholding allowance for each exemption, what is Dunn's federal income tax withholding? Round your answer to two decimal places. Table for Percentage Method of Withholding WEEKLY Payroll Period EXHIBIT 2 Wage Bracket Withholding Table ..So (a) SINGLE person (including head of household)- If the amount of wages (after...
Federal Income Tax Withholding Bob Dunn's weekly gross earnings for the present week were $2,280. Dunn has two exemptions. Using the wage bracket withholding table in Exhibit 2 with a $75 standard withholding allowance for each exemption, what is Dunn's federal income tax withholding? Round your answer to two decimal places. Table for Percentage Method of Withholding WEEKLY Payroll Period (a) SINGLE person (including head of household)- If the amount of wages (after subtracting withholding allowances) The amount of income...
eBook Show Me How Calculator Print Item Federal Income Tax Withholding Bob Wolfe's weekly gross earnings for the present week were $2,370. Wolfe has four exemptions. Using the wage bracket withholding table in Exhibit 2 with a $75 standard withholding allowance for each exemption, what is Wolfe's federal income tax withholding? Round your answer to two decimal places. Table for Percentage Method of Withholding WEEKLY Payroll Period EXHIBIT 2 Wage Bracket Withholding Table ..SO (a) SINGLE person (including head of...
Federal Income Tax Withholding Bob Dunn's weekly gross earnings for the present week were $2,490. Dunn has two exemptions. Using the wage bracket withholding table below with a $63 standard withholding allowance for each exemption, what is Dunn's federal income tax withholding? Round your answer to two decimal places. Table for Percentage Method of Withholding WEEKLY Payroll Period (a) SINGLE person (including head of household)— If the amount of wages (after subtracting withholding allowances) is: The amount of income tax...
Through the classifieds of the Miami Herald Rhonda Brennan found her first job after graduating from college. She was delighted when the offer came through at $15.60 per hour. She completed her W-4 stating that she is married with a child and claims an allowance of 3. Her company will pay her biweekly for 80 hours (assume a tax rate of 6.2% on $118,500 for Social Security and 1.45% for Medicare). Calculate her take-home pay for her first check. (Use...