Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/pay-calculator-solution/
- Create a program that will calculate employee’s weekly pay as follows:
- Input:
- Name
- Hourly Rate of pay($ / hour)
- Marital Status (Married/ Single)
- # of Dependents
- Healthcare (Yes or No)
- Hours Worked
- Outputs
- Gross Pay (Hours over 40 are paid at time and half)
- Health Insurance Amount
- Federal Tax
- From gross taxable pay subtract $70 for each dependent
- From value in A subtract appropriate value in Standard deduction column from table below to give taxable gross
- Tax at rate of 10% appropriate amount in 10% Column from table below
- Tax at rate of 15% appropriate amount in 15% Column from table below
- Tax at rate of 25% appropriate amount in 25% Column from table below
- Tax at rate of 35% remaining amount in 35% Column from table below
- Net Pay (Gross pay – Health care deduction – Federal Tax)
- If any of the input are unreasonable, tell user with a message and force reentry of the data
- Additional Requirements
- Name any control that is reference in code with a meaningful name
- Use functions for major task
- Calculate Gross Pay
- Calculate Health Deductions
- Calculate tax
- Other than constants do not use global variables
- Comment each function and variable and major sections of code
- Download: http://solutionzip.com/downloads/pay-calculator-solution/
Add Comment
Please, Sign In to add comment