cobol programming

Discussion in 'OT Technology' started by JaxFlJon, Sep 27, 2005.

  1. JaxFlJon

    JaxFlJon Guest

    I need to write up a program and I cant quite figure it out.

    Here is my pseudocode

    PAYROLL REPORT

    Call Init Module

    Do while there are more records

    Read input file

    If valid read

    Display Employee Name and prompt user to enter Hours Worked

    Get Hours Worked

    Call Calc Module

    End-if

    End-Read

    End do-while

    Call End-of-Job Module

    Close files

    End CUSTOMER REPORT





    INIT MODULE

    Open files

    Get Date from operator

    Write ‘DATE OF REPORT’ heading

    Write column headings

    End INIT MODULE





    CALC MODULE

    If Hours Worked > 40

    OverTime Hours = Hours Worked – 40

    Regular Hours = 40

    Else

    Regular Hours = Hours Worked

    OverTime Hours = 0

    End-if

    Regular Pay = Regular Hours * Rate

    Overtime Pay = OverTime Hours * Rate * 1.5

    Gross Pay = Regular Pay + Overtime Pay

    NFIT = Gross Pay * 18%

    Net Pay = Gross Pay – NFIT

    Write detail line

    End CALC MODULE





    END-OF-JOB MODULE

    Write report footer

    Display closing message

    End END-OF-JOB MODULE


    any help would be appericated :sadwavey:
     
  2. JaxFlJon

    JaxFlJon Guest

    *gulp* im so fked over.
     

Share This Page