- Are there comments at the beginning giving your name and email
address and outlining the purpose of the program?
- Does the program work correctly?
- If the program requires input, are there interactive prompts
explaining what input is required?
- Is the program organized by being broken up into procedures?
- Does each procedure have a logical purpose, well documented with
- Does the code have a sensible, consistent indentation structure
so that it can be easily understood?
- Are the variable names chosen to help the reader understand the
- Does the program satisfy all the requirements of the assignment?
- Have you tested the program on many different choices of input,
to try to see if it works in all situations?
- Were you careful about where you declared your variables?
Remember that variables declared at the top of the program (before the
procedures) are GLOBAL and accessible to all procedures: this
should be avoided except when necessary. Generally, declare variables
LOCALLY when possible. This means that a variable needed
only by one procedure should be declared inside that procedure, so it
is LOCAL to that procedure, and that a variable needed only
by the main program should declared just before the main program,
AFTER the procedures, so that it is LOCAL to the