|
|
 |
|
|
|
|
Output: |
|
|
|
 |
|
|
|
|
Error and Control Report |
|
|
|
 |
|
|
|
|
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 |
|
|
|
 |
|
|
|
|
Gives the total number of employee records that were processed correctly during the run |
|
|
|
 |
|
|
|
|
Payroll Report(Labeled for Management) |
|
|
|
 |
|
|
|
|
Contains a line for each employee showing the name, ID number, job site name, gross pay, and net pay |
|
|
|
 |
|
|
|
|
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. |
|
|
|
 |
|
|
|
|
Input: |
|
|
|
 |
|
|
|
|
Transaction File |
|
|
|
 |
|
|
|
|
Set of five job site number/name pairs |
|
|
|
 |
|
|
|
|
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) |
|
|
|
 |
|
|
|
|
These data have been presorted by site number within part ID number. |
|
|
|
 |
|
|
|
|
Master File |
|
|
|
 |
|
|
|
|
Part ID number |
|
|
|
 |
|
|
|
|
Part name (no embedded blanks) |
|
|
|
 |
|
|
|
|
Quantity on hand |
|
|
|
 |
|
|
|
|
Order point (the minimum quantity on hand that will trigger a reorder of the part) |
|
|
|
 |
|
|
|
|
Job site |
|
|
|
 |
|
|
|
|
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. |
|
|
|
 |
|
|
|
|
Output: |
|
|
|
 |
|
|
|
|
Error and Control Report |
|
|
|
 |
|
|
|
|
Contains error messages |
|
|
|
 |
|
|
|
|
Lists the parts that need to be ordered (those for which quantity on hand is less than order point) |
|
|
|
|
|