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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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