Lab 6

31 Mar

The emphasis in this lab is the use of structure charts to assist in designing your programs and further use of PERFORM (with PERFORMS within PERFORMED paragraphs). When reading through the requirements and planning functionality, be careful in decomposing tasks so that functionality is implemented in the most appropriate paragraph.


This program is to print out a report of employees and salary increases. Download the sample output and data file.







The input data file has the following layout:




NUMBER                      CODE       SERVICE    SALARY


1-3       4 – 18            19         20-21      22-28


004       Archer Bill       N          01         5000.00

185       Donneman Tom      G          06         12000.00

Note: the EDUCATION CODE will contain either a ‘G’ for employees who are graduates or ‘N’ for non-graduates. These are the only two values that will appear; there will NOT be erroneous data.






  1. The program is to classify all employees, both GRADS and NON GRADS, as follows. These classifications (i.e. SEN PROG, etc.) along with associated values are to be set up as constants in WORKING-STORAGE.


  1. A graduate employed more than 15 years is an analyst (print out ANALYST).
  2. A graduate employed 7 to 15 years inclusive is a Senior Programmer (print out SEN PROG).
  3. A non-graduate employed more than 10 years is a programmer (PROG).
  4. A graduate employed less than 7 years but more than 2 is also a programmer (PROG).
  5. A non-graduate employed 10 years or less but more than 4 years is a junior programmer (JR PROG).
  6. A non-graduate employed 4 years or less is unclassified. (Leave blank, use Move Spaces, NOT a WS literal).
  7. A graduate employed 2 years or less is unclassified (leave blank, use Move Spaces).


DESIGN REQUIREMENT: Break your solution down into at least 5 tasks (paragraphs), one for each classification, to process the requirements for the classification, to be used by both the GRADUATES/NON GRADUATES depending on their years of service. Then, within the main IF statements, just PERFORM those paragraphs as required. You may also want to consider having one paragraph each for Grads and Non-grads themselves.


  1. The program is to calculate pay increases as follows:

    Analyst 9%
    Senior Prog                                 9.3%                      These pay increase % are
    Programmer                                              6.7%                      to set up in
    Junior Prog                                3.7%                      WORKING-STORAGE as
    Unclassified                                                0%                          program constants.


  1. The program is to calculate and print out the average increase (2 places of decimal) for each of the 4 classifications. Print with SHORT TITLES on 1 or 2 lines. Use Z and comma editing.


  1. The output report is to have the main heading EMPLOYEE SALARY REPORT and suitable column headings; line spacing is your choice. My attached sample shown is just a model, and you do not have to follow it exactly.


  1. For each employee print the employee number, name, years, classification, (i.e. SEN PROG, etc.), present salary, % increase with a % sign, pay increase and new salary.


  1. Print 15 lines on each page, and include a PAGE NUMBER as shown on the sample output.


  1. Print the pay increase amount with a floating $, a comma and a + sign on the right hand end, i.e. $2,610.01+.


  1. For UNCLASSIFIED leave the % increase blank (spaces) and print the pay increase amount as $0.00+. Don’t print the %, of course.


  1. Print the NEW SALARY with a fixed $, a comma and Z’s, i.e. $ 27,251.17.


  1. Print the PRESENT SALARY with Z’s, and a comma. No $.


  1. You MUST create your OUTPUT DETAIL LINE in WORKING-STORAGE, NOT within the FD record layout. You will be using FROM consistently in all WRITE statements.




A zip or 7z archive containing your entire visual studio project and .sln file.

A copy of your structure chart



Leave a comment

Posted by on March 31, 2017 in academic writing, Academic Writing



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: