Vous êtes sur la page 1sur 1

Style Guidelines

1. A variable names must be meaningful to the problem at hand.


1. This means that single letter variable names are almost never acceptable
2. You program should have the following comments
1. At the top of the program it should explain what this program does
2. At the beginning of each user defined function you should explain what the function does
and what each argument represents.
3. Sufficient commenting so that your fellow classmates can understand what you are doing
3. White space
1. All code that is part of a function should be indented 1 level
2. All code that is part of a for loop, while loop, if statement, or switch statement should be
indented 1 level
For each violation of the above style guideline you will lose 1% of your grade up to a maximum of
10%.

Vous aimerez peut-être aussi