Added: 1 year ago
From: redbear8174
Views: 385
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (2)

Sign In or Sign Up now to post a comment!
  • how will you calculate the commission in cobol for eg

    less that $ 200 formula for commission$ 30 plus 5 3/4of sales

  • @TeamHazzelhoff - IDENTIFICATION DIVISION........(don't have space to display all the code) WORKING-STORAGE SECTION. 01 sales PIC S999V99 . 01 rate PIC S999V99 VALUE 0.1 . 01 threshold PIC S999V99 VALUE 200.0 . 01 base PIC S999V99 VALUE 30.0 . 01 com PIC S999V99.

    IF sales (LT character) threshold THEN

    MULTIPLY rate BY sales GIVING merit ADD merit TO base GIVING com DISPLAY "Commission is ", com

    ELSE DISPLAY "extra bonus"

    END-IF

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more