Question
Asked by:
$20.00 Hourly Employee Calculator using "C" programming
- From Computer-Science: Programming-Methods , Computer-Science: General-CS
- Closed, but you can still post tutorials
- Due on May. 23, 2009
- Asked on May 20, 2009 at 5:25:03PM
Q:Objective:
Write a C program which will do weekly payroll calculations for hourly employees. For each employee calculate gross pay, federal tax, state tax, insurance deduction and net pay. Allow any number of employees to be processed. Also generate a summary report as specified below.
Specification:
- Assume that employees earn regular pay for the first 40 hours, time and a half pay for hours between 40 and 50 and double time pay for all hours over 50.
- Assume that the state tax rate is 5% of the gross pay.
- Assume that the federal tax rate varies based on the gross pay as follows:
22% if the gross pay is $600 or less.
27% if the gross pay is over $600 but less than $1500.
33% if the gross pay is $1500 or more.
- Assume that an insurance premium of $58 is deducted weekly for each employee, but only if the employee works at least 30 hours.
- The net pay for each employee will be gross pay minus deductions.
- For each employee display:
hours worked, payrate, gross pay, federal tax rate, federal tax deduction, state tax rate, state tax deduction, insurance premium and net pay.
- Label all outputs.
- After all employees are entered print the following summary information:
The number of employees processed.
The total gross pay for all employees.
The average net pay for all employees.
Dollar amounts should be printed with dollar signs ($) and two decimal places.
Use named constants where appropriate.
Use proper indentation (notice the style in the textbook).
Use variable names which convey meaning.
Format the output neatly. Make it easy to read and understand.
To which computadorageek said: we just use the terminal in mac os or with windows we use putty does this help?



