I would like to know if I'm getting close to writing the pseudocode for the assignment below. Any help would be greatly Appreciated.
Assignment:
Use both a selection structure and a repetition structure.
Write the pseudocode
Your company wants a list of each employee who worked overtime during the previous pay period. You should read the name, employee ID number and hours worked from a file. Select and print the records that have hours greater than 40.
My Pseudocode:
Quote:
Start
Get employeeList
Print employeeList
Get First employeeName
Print First employeeName
while NOT eof
if hoursWorked > 40
during previous pay period
list employeeRecords
else
get next employeeName
endif
endwhile
Print employeeRecords
employeeName employeeIdNo hoursWorked
Print employeeName employeeIdNo hoursWorked
Stop
|