Quiz #1 - must by completed by September 26th
(Note - some of your answers might be correct.  E-mail the instructor if you have questions over the grading / answers)

 

Please enter your four digit COBOL ID number:   

Please enter your first name: 

Please enter your last name: 


Short Answers:  (spelling counts!!!)

1)  You have an input field (RATE-OF-PAY-IN) - where the largest anybody in your company can get paid on a hourly basis is $49.99.  Give the PIC clause for this input value.  (don't use the word PIC - just give the specification - and don't include the ending period).

2)  You want to write out the RATE-OF-PAY-OUT field.  This time, you want it appear like:  49.99.  Zero suppress any leading digits (so somebody making 8.25 a hour would appear as <blank>8.25)  Give the PIC clause (don't use the word PIC - just give the specification - no output dollar sign please - and don't include the ending period).

3) You have a calculated field - GROSS-PAY - which is the rate-of-pay field (which is as much as 49.99) and the hours worked field (which is as much as 50).  WITHOUT considering overtime pay (which really wouldn't make any difference in this question), give the internal field specification (PIC) for GROSS-PAY (don't use the word PIC - just give the specification - don't include the ending period).

4) This time we want to output the calculated GROSS-PAY field.  We want it to have a leading dollar sign - suppress all leading zeros - include a comma if the value is over 1,000  - and include a real decimal point.  So, 1234.56 would be:  $1,234.56.  Give the specification  (don't use the word PIC - don't include the ending period).

5) This is a correct statement in COBOL:  
   MULTIPLY RATE-OF-PAY-IN TIMES HOURS-WORKED-IN GIVING GROSS-PAY (assuming all variables have been properly defined):
True
False