[B]Hi anyone - I've just started learning Pascal but I'm not too good at it. ANY HELP AT ALL WITH THE FOLLOWING PROGRAM WOULD BE BRILLIANT _ THANKYOU!![/B]
I need to write a manufacturing program for work to produce each week the wages paid to employees. Currently working on 2 shifts A/B paid in the following way:
Shift A - 10 for each shift attended and 4 for each additional hour.
Shift B - 12 for each shift attended and 5 for additional hour.
However, these are subject to change from week to week.
The required output needs to be in the form of a report with each detail line to include
Clock card number,
Number of shifts attended in the week,
Total hours worked,
Shift attendance for week and
Additional hours for week.
The footer has to include totals for:
Number of employees,
Total Attendance pay for all workers and
Total additional hours pay for each worker.
The employee data is stored on a text file of which I have the definition for.
To ensure the solution produced is acceptable each Emp record needs to be validated with:
Clock card number range 1000 to 9999
Tax code - 3 digits and 1 letter (L or H)
Shift attended - A or B
Shifts worked - range 1 to 7
Any emp record which fails any of the above must be written to an error file with all other data validated previously.
The date and week number is to be input by user and the rates of pay for the two shifts is to be input by user and validated by program. the Attendance rate should be between 1 and 100 per shift and the Additional hour rates should be between 1 and 10.
The user must be allowed to re-enter any of the rates which fail the above test.
Once again any help at all with the above would be great even if only an algorithm or anything at all.