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

  Digital signal processing - employ state-space models

you will program, document, and test a zero-crossing detector, with hysteresis for robustness, that also counts the number of samples between zero crossings.

  Program which converts fahrenheit to centigrade

Design, create, and test a program which converts degrees Fahrenheit to degrees Centigrade (Celsius). The program must contain one main program and 3 functions: F2C() and C2F() and instructions()

  Write a program to decide an integer value is power of two

Write a program to decide whether an integer value is power of 2 or not. Your function should return true if the value is power of 2, otherwise return false.

  Prepare program to check the syntax of the english language

Determine the form of the output dependent on the coefficients being input. Print and evaluate with peers in class."

  Uses classes with linked list

Turning a work in C++ that uses classes with a linked list to a no classes project

  Analyze a basic set of requirements for a problem

Create the main bank program. Note that you can create the main bank program in the main function or you can try to create another class for the main bank program.

  Same birthday

How likely is it that two people in one section of our class (40 students) have the same birthday ?

  How to declare and use single dimension arrays

How do you declare and use single dimension arrays? How do you perform basic sort and search routines on arrays?

  Write an ascending function to test

Write an ascending function to test whether a list of integers is in strict ascending order.

  Write program that print a diamond shape featuring asterisk

For this assignment, we will need to write a c++ program that is print out a diamond shape featuring the * asterisk to the console window. Please submit .cpp file.

  Prepare a c program that has this description

n is an integer, >= 0. x points to the first element of an int array with n position. p points to the first element of another int array array, also with n position.

  Write a function named caesardecipher

Write a function named caesarDecipher that accepts a key value (the Caesar shift value) as its first command-line parameter, and a string (the ciphertext) for its second parameter. Your caesarDecipher function should look like this:

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