View Single Post
Old Sep 24th, 2005, 7:57 PM   #1
JimR
Newbie
 
Join Date: Sep 2005
Posts: 8
Rep Power: 0 JimR is on a distinguished road
Assignment, asking for help

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
JimR is offline   Reply With Quote