The Timely Talent Temporary Help Agency maintains an employee master file that c
ID: 645059 • Letter: T
Question
The Timely Talent Temporary Help Agency maintains an employee master file
that contains an employee ID number, last name, first name, address, and hourly
rate for each temporary worker. The file has been sorted in employee ID number
order. Each week, a transaction file is created with a job number, address, customer
name, employee ID, and hours worked for every job filled by Timely Talent
workers. The transaction file is also sorted in employee ID order.
a. Design the logic for a program that matches the current week
Explanation / Answer
start
perform housekeeping( )
while bothDone = "N"
perform mainLoop( )
perform finishUp( )
stop
housekeeping( )
declare variables
open files
perform readDiane( )
perform readMark( )
if dianePrice = 99999999 then
if markPrice = 99999999 then
bothDone = "Y"
endif
endif
return
readDiane( )
read dianeRec
if eof then
dianePrice = 99999999
endif
return
readMark( )
read markRec
if eof then
markPrice = 99999999
endif
return
mainLoop( )
if markPrice > dianePrice then
write
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.