Draw the logic flowchart segment and code the COBOL for the following IF statements:

Layout:

1 - 5 Item Number
6 - 20 Item Name
21 Category
22 - 23 Department
24 - 28 On Hand
29 - 33 On Order
34 - 38 Committed
39 - 43 ReOrder Point
44 - 48 Cost (with 2 decimal places)
49- 54 Price (with 2 decimal places)
  1. If category is A and department is 12 you need to add 1 to CATA12-CT.

  2. If category is A or category is B you need to add 1 to CATAB-CT.

  3. If category is A and either committed is greater than the reorder point or on hand =0, you need to move the message ORDER to MSG-PR.

  4. If category is A and cost is greater than 50, add 1 to CATA50-CT. If category is B and cost is greater than 75, add 1 to CATB75-CT. If category is C and cost is greater than 100, add 1 to CATC100-CT. Otherwise add to CATINV-CT.

  5. If department is 12 and committed is greater than the reorder point and either cost is greater than 25 or price is greater than 35, add 1 to DEPT12A-CT. If the department is 12 and the committed is not greater than the reorder point and on hand is greater than 20 or on order is greater than 20 add 1 to DEPT12B-CT. In all other cases add to NOT-CT.