WorkersPay printout

WorkersPay printout - -Program Description:This program...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { ----------------------------------------------------------Program Description:This program will use procedures to evaluate gross and gross pay of the worker by inputing the number of hours worked and calculating withholdings. pg.104------------------------------------------------------------}program WorkersPay;const payrate= 9.63;{the payrate is $9.63}sstax= 0.06;{the social security tax is 6%}fitax= 0.14;{the federal income tax is 14%}sitax= 0.05;{the state income tax is 5%}uniondues= 6;{the union dues are $6}dependdues= 10;{the dependent dues are $10}overtimerate= 1.5;{the overtime rate is 1.5 times the normal rate}var hrs,{the number of hours worked this week}grosspay,{the gross pay}netpay,{the net pay}dependents,{the number of dependents}withholdings,{the total withholdings}socialdeduc,{the social security deduction}federaldeduc,{the federal income deduction}statededuc,{the state income deduction}uniondeduc,{the union deduction}dependdeduc{the dependents deduction}: real;{they are all real}{-----------------------------------------------------------PromptForInput:This procedure prompts the user to enter the number of hours they worked this week.------------------------------------------------------------}Procedure GetData(var hrs, depend: real);beginwriteln('Please enter how many hours you worked this week, then press return:');...
View Full Document

{[ snackBarMessage ]}

Page1 / 4

WorkersPay printout - -Program Description:This program...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online