Tuesday, October 11, 2011

Exam #1 pretest comments

Instead of me retyping the same comments to many students, I'm listing code critiques here by numbers and me return emails to you reference this list.

Note:
Not all students turned in code for last night's pretest. If you neglect to turn in code during next week's exam, you will receive a failing grade.

  1. Follow Java naming conventions for
    • classes
    • constants
    • variables

  2. Answer the question asked exactly

  3. Avoid magic numbers in your code (aka use constants properly)

  4. Be aware of exactly how many iterations your loops must execute

  5. Be careful to display output as described in the problem

  6. Follow good Java programming conventions with respect to whitespace around operators and operands

  7. Line up output carefully