From the worker''s gross pay

Assignment Help C/C++ Programming
Reference no: EM13877187

An employee is paid at a rate of $16.78 per hour for the first 40 hours worked in a week. Any hours over the regular 40 hours are paid at the overtime rate of one-and-one-half times that. From the worker's gross pay, here are the following withholdings:

  • Social Security tax (FICA): 6%
  • Federal income tax, use the following percentage ranges:
0 to 300.00 10
300.01 to 400.00 12
400.01 to 500.00 15
500.01 and over 20

State income tax: 5% Union dues: $10 per week If the worker has three or more dependents, then an additional $35 is withheld to cover the extra cost of health insurance beyond what the employer pays.

Write a program that will ask the user to input the following data:

  • The employee number
  • The number of hours worked in a week
  • The number of dependents

The program will do the calculations and output the following per week:

  • Employee number
  • Number of dependents
  • Number of hours worked
  • Regular pay rate
  • Gross pay
  • FICA tax withheld
  • Federal Income Tax withheld
  • State Tax withheld
  • Union Dues withheld
  • Net Pay

The display should look like the following (make sure to format it correctly):

Employee number: 234567890

Number of dependents:       1
Number of hours worked:    10.00
Regular pay rate:         $16.78   $  167.80
                                   ---------
Gross pay:                         $  167.80

FICA tax withheld:                 $   10.07
Federal Income Tax withheld (10%): $   16.78
State Tax withheld:                $    8.39
Union Dues withheld:               $   10.00
                                   ---------
Net Pay:                           $  122.56
  

 

Employee number: 234567890

Number of dependents:       2
Number of hours worked:    20.00
Regular pay rate:         $16.78   $  335.60
                                   ---------
Gross pay:                         $  335.60

FICA tax withheld:                 $   20.14
Federal Income Tax withheld (12%): $   40.27
State Tax withheld:                $   16.78
Union Dues withheld:               $   10.00
                                   ---------
Net Pay:                           $  248.41
  

 

Employee number: 234567890

Number of dependents:       3
Number of hours worked:    25.00
Regular pay rate:         $16.78   $  419.50
                                   ---------
Gross pay:                         $  419.50

FICA tax withheld:                 $   25.17
Federal Income Tax withheld (15%): $   62.92
State Tax withheld:                $   20.98
Health Insurance Premium withheld: $   35.00
Union Dues withheld:               $   10.00
                                   ---------
Net Pay:                           $  265.43
  

 

Employee number: 234567890

Number of dependents:       3
Number of hours worked:    50.00
Regular pay rate:         $16.78   $  671.20
Overtime hours worked:     10.00
With overtime premium:      1.50   $  251.70
                                   ---------
Gross pay:                         $  922.90

FICA tax withheld:                 $   55.37
Federal Income Tax withheld (20%): $  184.58
State Tax withheld:                $   46.15
Health Insurance Premium withheld: $   35.00
Union Dues withheld:               $   10.00
                                   ---------
Net Pay:                           $  591.80  

 

Include in your program the following comments:

  • Name of program
  • Programmer's name
  • Brief description of the program
  • Comments for all the statements
  • Create an IPO chart. List the input, processing, and output items.
  • Plan the algorithm using pseudocode.
  • Save the program in a filename LastFirst_a6.cpp
  • Compile and run the program.
  • Take a screen shot of the output. Save it in a filename LastFirst_a6.doc (e.g. DoeJoe_a6.doc)

Reference no: EM13877187

Questions Cloud

Experience neither plastic deformation : A cylindrical rod 380 mm (15.0 in.) long, having a diameter of 10.0 mm (0.40 in.), is to be subjected to a tensile load. If the rod is to experience neither plastic deformation nor an elongation of more than 0.9 mm (0.035 in.) when the applied loa..
Calculate occs preliminary net income for september : Using your answer to requirement 1 or 2, calculate OCC's preliminary net income for September. Is OCC profitable, based on its preliminary net income? Identify at least two adjustments that OCC will be required to make before it can prepare a final i..
Develop spreadsheet that is able to produce profit-variance : Develop an Excel spreadsheet that is able to produce a profit-variance report similar to the one presented in text Exhibit.
Write a program that asks for the starting time : Write a program that asks for the starting time and the number of minutes of the call, and display the charges. The program should ask for the time to be entered as a floating-point number in the form HH.MM. For example, 07:00 hours will be entered a..
From the worker''s gross pay : An employee is paid at a rate of $16.78 per hour for the first 40 hours worked in a week. Any hours over the regular 40 hours are paid at the overtime rate of one-and-one-half times that. From the worker's gross pay
Organizational impact of a newly implemented erp system : Describe the organizational impact of a newly implemented ERP system. Describe new organizational capabilities of typical ERP systems. Describe the ability of the organization to adapt to change on ERP implementation
Write the reduced form of the model : Assume G0 = 545 and write the reduced form of the model. Linearly approximate Y by expanding the reduced form around 3390.
The differences between aasb 8 and the old accounting : Write a report on The differences between AASB 8 and the old accounting standards on segment reporting.
Determine professional labor rate and efficiency variances : Determine the professional labor rate and efficiency variances for August 2010. What nonfinancial factors should Phoenix consider in evaluating the effectiveness and efficiency of professional labor?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a switch statement that assigns a string variable

Write a switch statement that assigns a String variable monthName with the months January, February, March, April, May, and June, ifmonthNum is 1, 2, 3, 4, 5, 6, accordingly.

  A "mynum" class that will read "randfile.txt" file

A "MyNum" class that will read "randFile.txt" file and obtain the 20,000 integer numbers

  Find answers of c programming questions

1. int main(void){ int height 3. 5; int width = 25: if(height == 5 && width == 25){printf("the height and width are correct: "); }return 0; }Assuming all libraries are included, what is the result of the code above when run?

  Provide a three-argument constructor

Create a class called Point that has two data members: x- and y-coordinates of the point. Provide a no-argument and a 2-argument constructor - Provide a three-argument constructor

  Program that translates a letter grade into a number grade

Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -.

  How do you make a row with different string names

How do you make a row with different string names and put a certain amount of space between each one?

  Program specifications for a simple business problem

Given a set of program specifications for a simple business problem utilizing a modular design, code and test a program that meets the specifications and employs best programming practices.

  An essential component of compromised to a resource

1. true or false? an essential component of compromised to a resource is that the situation resulting in the compromise was motivated by malice. A.true B.false

  Rationalnumber class a rational number is a number that can

rationalnumber class a rational number is a number that can be represented as the quotient of two nbspintegers. for

  Series of arithmetic problems

This program will ask the user to answer a series of arithmetic problems and report on how the user performs. You will write this program in phases as specified below. Make sure that each phase works correctly and uses good style before progressin..

  How many integer values are in the array

Write a function named "location_of_largest" that takes as its arguments the following.

  By a minimal interpretation that makes a formula

By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd