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

  The main function should prompt the user

The main function should prompt the user for the 2 numbers, call the function to display the correct label, then calculate and display the sum of the numbers. Call the function to display the correct label, then calculate and display the differenc..

  Use the top-down modular approach to design program

Use the top-down modular approach and pseudocode to design a suitable program to solve it. Where appropriate, use defensive programming techniques.

  Once the user enters a 0

Once the user enters a 0 you will exit the loop, close the file and execute the code as previously designed until you have displayed all of the scores and the average handicap.

  Write a program that uses a function for swapping

Write a program that uses a function for swapping a two numbers. Note: The program requires the user to enter the numbers via the keyboard and determine and display whether a number is odd or even.

  Write a recursive algorithm to print all of the subsets

Write a recursive algorithm to print all of the subsets for the set of the first positive integers.

  The mean and standard deviation

How do i write a program in c++ that use functions max, min, the total numbers, the mean and standard deviation to read a file text and return these values from the file text. note the file text has random numbers. note im not suppose to use arrays.

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  The program will read integers values

Write a C++ program to do the following. The program will read integers values one at a time from standard input (cin) until you read the value 150. assume that the number of values read in is at least 1 and less than or equal to 100

  Why does the neverwet spray protect it from water

As is know, acetone is a polar molecule like water, so isn't it suppose to mix? So my question is: why does the Neverwet spray protect it from water but not from oils and detergents?

  Evaluate the circumference of a circle

Write a program that will call a function to calculate the area of a circle, and call another function to calculate the circumference of a circle.

  Assume that you are tasked with tracking the orders which

loops and nested loops please respond to the followingbullsuggest one 1 example of a problematic programming situation

  Program to input the length of the side from the keyboard

write a program to input the length of the side from the keyboard ,use the class to obtain the areas of all shapes and display the results on the screen

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