< previous page page_832 next page >

Page 832
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Output:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Error and Control Report
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Lists the input lines for which there is no corresponding master record, or where the employees' job site numbers do not agree with those in the master file. Continues processing with the next line of data
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Gives the total number of employee records that were processed correctly during the run
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Payroll Report(Labeled for Management)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Contains a line for each employee showing the name, ID number, job site name, gross pay, and net pay
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Contains a total line showing the total amount of gross pay and total amount of net pay
3. The Emerging Manufacturing Company has decided to use its new computer for parts inventory control as well as payroll. You are writing a program that is to be run each night. It takes the stock tickets from the day's transactions, makes a list of the parts that need ordering, and prints an updated report that must be given to the five job site managers each morning. Note that you are not being asked to update the file.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Input:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Transaction File
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Set of five job site number/name pairs
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
One line for each stock transaction containing part ID number, job site number, and number of parts bought or sold (a negative number indicates that it has been sold)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
These data have been presorted by site number within part ID number.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Master File
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Part ID number
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Part name (no embedded blanks)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Quantity on hand
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Order point (the minimum quantity on hand that will trigger a reorder of the part)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Job site
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
This file is also ordered by job site number within part ID number. If a part is not in the master file and the transaction is a sale, an error message should be printed. If the transaction is a purchase, the part should be listed in the proper place in the parts report. Note that there is a separate entry in the master file for parts at each job site.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Output:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Error and Control Report
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Contains error messages
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Lists the parts that need to be ordered (those for which quantity on hand is less than order point)

 
< previous page page_832 next page >