|
PAY ENTRY |
||||||||||||
|
SETUP |
PROCESS |
WRAPUP |
||||||||||
|
1. Call SETUP Routine |
||||||||||||
|
2. Call PROCESS Routine |
||||||||||||
|
3. Call WRAPUP Routine |
||||||||||||
|
Subroutines |
||||||||||||
|
SETUP |
||||||||||||
|
Claer Screen |
Call Open "input.dat" Routine |
Call Print Header Routine |
||||||||||
|
1.1 Clear Screen |
||||||||||||
|
.2 Call Safe Open "input.dat" Routine |
||||||||||||
|
.3 Call Print Header Routine |
||||||||||||
|
PROCESS |
||||||||||||
|
Write Data to file |
Accumulate Record Count |
Get Yes/No |
Check Yes/No |
|||||||||
|
Yes |
No |
|||||||||||
|
1.1 Write data to out put file |
||||||||||||
|
.2 Accumulate Record Count |
||||||||||||
|
.3 Get Enter another employee question |
||||||||||||
|
.4 Check Yes/No |
||||||||||||
|
.1 Yes |
||||||||||||
|
.2 No |
||||||||||||
|
WRAPUP |
||||||||||||
|
Close out put file |
Print number of records written |
Print Program Complete |
||||||||||
|
1.1 Safe Close out put file |
||||||||||||
|
.2 Print number of records written to disk |
||||||||||||
|
.3 Print Program Complete |
||||||||||||
|
Print Header |
||||||||||||
|
Print Title |
Print Messege |
Print Employee id number |
Print Days |
Print Rate |
Get Data |
|||||||
|
1.1 Print Title |
||||||||||||
|
.2 Print "Enter the following data , press enter after each item" |
||||||||||||
|
.3 Print "Employee id number" |
||||||||||||
|
.4 Print Monday to Friday |
||||||||||||
|
.5 Print Hourly Rate |
||||||||||||
|
.6 Call Get Data Routine |
||||||||||||
|
Get Data |
||||||||||||
|
Get Employee id |
Loop until greater than 5 |
Get Pay Rate |
Loop until Pay Rate greater than max pay |
Get Yes/No |
Check Yes/No |
|||||||
|
Get week Day at day |
Accumulate line by 2 |
Loop untill week day greater than max hours |
Print Pay Rate exceeded max pay |
Get Pay Rate |
Yes |
No |
||||||
|
Print Hours exceeded max hours |
Get week day |
Process |
Print Header |
|||||||||
|
1.1 Get Employee Id Number |
||||||||||||
|
.2 Loop until day is greater than 5 |
||||||||||||
|
.1 Get Week Day at day |
||||||||||||
|
.2 Line = line + 2 |
||||||||||||
|
.3 Loop until Week Day greater than max hours |
||||||||||||
|
.1 Print hours entered exeed 9.9 Please try again |
||||||||||||
|
.2 Get Week Day at day |
||||||||||||
|
.3 Get Pay Rate |
||||||||||||
|
.4 Loop until Pay Rate greater than 29.99 |
||||||||||||
|
.1 Print Pay Rate may not exced 29.99 |
||||||||||||
|
.2 Get Pay Rate |
||||||||||||
|
.5 Get Yes No |
||||||||||||
|
.6 Check Yes No |
||||||||||||
|
.1 Yes |
||||||||||||
|
.1 Call Process Routine |
||||||||||||
|
.2 No |
||||||||||||
|
.1 Call Print Header Routine |