Program 3 Grading Codes

  1. Incorrect answers - check your arithmetic!

  2. Variable(s) undefined or incorrect if no bonus (you probably need an ELSE clause on an IF statement),
    or calculation produces wrong answers if Total_fuel < Bonus (watch out for negative bonus!),
    or variable undefined if no data (a variable is defined inside the WHILE loop that isn't defined if the loop is skipped).

  3. Bad output layout. Includes spelling and allignment problems.

  4. No documentation

  5. Insufficient documentation

  6. No prologue

  7. Insufficient prologue

  8. Bad indentation or other style problems.

  9. Magic numbers (like 8, 2, 0.5, 100, 60, 'Invalid')

  10. Wrong OT rate - print the average BEFORE dividing by 2.

  11. Calculation fails if Total_fuel = 0 (most likely you divide by 0).

  12. Poor variable names. Avoid names like Eight or BFT. Also avoid Regular = 'Regular'.

  13. Pull some of these statements out of CASE, and put them after the CASE.