Vous êtes sur la page 1sur 2

display("Welcome to the Tax Report Program!

")
exempt 1
more 1
count 0
totalfed 0 total_state 0
totalfica 0 totalmedicare 0 totalnet 0
fedtax 0.06
statetax 0.04
ficatax 0.06
medicare 0.03
write_to_payroll( " ***Payroll Tax Report***")
write_to_payroll(" - - - - - - - - - - - - - - - - - - - - ")
write_to_payroll(" EmpID Wage Hours Exempt FedTax StateTax FICATax Medicare NetPay")
write_to_payroll("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ")
display(" Processing Data File Now...")
data_from_timecards(ID, wage, hours, exempt)
WHILE there is data from timecards, DO
load_from_timecards(ID, wage, hours, exempt)
OT "
hours>40
T F
gross 40*wage + (hours - 40)*wage*1.5
OT *"
gross wage*hours
exempt=0
T F
write_to_payroll(ID, wage, hours, exempt,
gross*fedtax, gross*statetax, gross*ficatax,
gross*medicare, gross - (gross * (fedtax+
statetax + ficatax + medicare)), OT)
write_to_payroll( ID, wage, hours, exempt,
"- - - Tax Exempt Status - - - ", gross, OT)
totalfed totalfed + gross*fedtax)
total_state total_state + gross*statetax
totalfica totalfica + (gross* ficatax)
totalmedicare totalmedicare +
gross*medicare
totalnet totalnet + gross - (gross* (fedtax
+statetax + ficatax + medicare))
totalnet totalnet + gross
count count + 1
write_to_payroll( "Total Employee count: ", count, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "
write_to_payroll( "Total Tax Withholdings: ", totalfed, total_state, totalfica, totalmedicare, totalnet
write_to_payroll(" * - denotes Overtime Included in NetPay")
write_to_payroll("******* End of Report *******")
display(" ******* End of Processing *******")




timecards
121233 12.50 40 0
234311 20.00 41.3 1
234432 25.00 62.5 1
444232 7.40 20 0
342232 20.00 33.3 1
432332 18.50 47 0

MEMORY
more: 1
ID: 121233 234311
234432 444232
342232 432332
wage: 12.50 20.00 25.00 7.40
20.00 18.50
hours: 40 41.3 62.5 20 33.3 47
exempt: 1 0 1 1 0 1 0
OT: " " "*" "*" " " "*" " "

payroll
***Payroll Tax Report***
- - - - - - - - - - - - - - - - - - - -
EmpID Wage Hours Exempt FedTax StateTax FICATax Medicare NetPay
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
121233 12.50 40 0 30.00 20.00 30.00 15.00 405.00
234311 20.00 41.3 1 - - - Tax Exempt Status - - - 839.00*
234432 25.00 62.5 1 - - - Tax Exempt Status - - - 1,843.75*
444232 7.40 20 0 8.88 5.92 8.88 4.44 119.88
342232 20.00 33.3 1 - - - Tax Exempt Status - - - 666.00
432332 18.50 47 0 56.06 37.37 56.06 28.03 756.73*
Total Employee count: 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Total Tax Withholdings: 94.94 63.29 94.94 47.47 4,630.36
* - denotes Overtime Pay Included
******* End of Report *******
DISPLAY
Welcome to the Tax Report Program!
Processing Data File Now...
******* End of Processing *******

gross: 405 839 1843.75 119.88 666 756.73
count: 0 1 2 3 4 5 6
totalfed: 0 30 38.88 94.94
total_state: 0 20 25.92 63.29
totalfica: 0 30 38.88 94.94
totalmedicare: 0 15 19.44 47.47
totalnet: 0 405 1244 3087.75 3207.63 3873.63 4630.36
fedtax: 0.06
statetax: 0.04
ficatax: 0.06
medicare: 0.03

Vous aimerez peut-être aussi