CS221 Assignment V We are going to write a program to produce a bonus report. a. The payroll records have been sorted into ascending sequence by office number within territory number. There are an unknown number of territories, but every territory will have exactly two offices, and every office will have exactly 10 employees. Thus all employees within office 01 within territory 01 will appear before employee records for office 02 within territory 01, and so on. b. Only employees who were hired before 1994 are entitled to a 10% bonus. c. Print the names of all the employees and their bonuses. Print a separate page for each office within each territory. Use a nested PERFORM to achieve the page breaks for each office within each territory. (The WRITE...AFTER ADVANCING PAGE will issue a page break) Record layout for the input file is as follows: Field Name Size Type Employee No. 5 Alphanumeric Employee Name 20 Alphanumeric Location Code: Group Territory No. 2 Alphanumeric Office No. 2 Alphanumeric Annual Salary 6 Numeric (integer) unused 29 Alphanumeric Date Hired 6 Format: MMDDYY unused 10 Alphanumeric =========================================== Total Size of Rec 80 The following is the layout for the report. The first 9 lines are the headers. Line 11 describes the detail. 1 2 3 4 5 6 + 0 + 0 + 0 + 0 + 0 + 0 1 2 BONUS REPORT PAGE 99 3 99/99/9999 4 5 TERRITORY - XX 6 7 OFFICE - XX 8 9 EMPLOYEE NAME BONUS 10 11 XXXXXXXXXXXXXXXXXXXX $ZZ,ZZZ.99 Extra Credit For up to 10 point of extra credit you can modify the assignment 5 program to assume that the number employees is unknown. Also assume that the number of territories is unknown and the number of offices within each territory is unknown. If you choose to do the extra credit, complete the original assignment 5 as defined above. Then make a copy of the program and modify the copy to get the extra credit. You should then hand in the two programs.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
Windows ME, Cobol 97 Fujitsu