We will use Borland Turbo C for all assignments.
Please follow these conventions:
1. Indent all new blocks 2 or 4 spaces. Be consistent.
2. Outdent all #ifdef statements.
3. You should have a general comment block at the beginning of each program which includes your name, class, assignment, and a brief statement of what the program does.
4. Each function or procedure should have a comment header including the name, purpose, and input parameters and their purpose.
5. Make your code easy to follow.
6. Do not "overcomment". In other words, if you feel that what a line of code does is obvious, you need not comment it. If, however, you feel that the reader might be confused, add a comment. For example, the line of code "x = 0" is pretty obvious; don't comment this line with "set the value of x to 0".
7. Leave plenty of whitespace (i.e., spaces, blank lines) in your code; don't cram everything together.
8. Variable names should be well chosen. If a variable name is more than one word, use a capital letter for each new word.
9. Any #define's should be in all caps, global variables should have the first letter capitalized, and local variables should have the first letter in lowercase.