Your program should begin with a block comment using the following template:
/** * Assignment #1. * This program adds up some coins and prints the total value. * * Authors: Charlie McDowell (mcdowell@ucsc.edu) * and Jane Programmer (jprogrammer@ucsc.edu) */You program names should always begin with an uppercase letter and then use lowercase except to separate embedded words (as in CountChange).
Your variable names should begin with a lowercase letter, and use uppercase to separate embedded words (as in someVariableName). The variable names must be descriptive English words. There are only a few exceptions to this and they will be discussed in class. It is better to err on the side of long and descriptive (use "index" instead of "i", use "quarters" instead of "q").
You must use proper indentation. See the examples in the book. Each opening brace "{" must be followed by additional indentation. Each closing "}" must be on a line by itself and aligned directly below the matching "{" or the keyword on the line containing the matching "{" if the "{" is not on a line by itself.
The source files you submit MUST NOT contain any tab characters. The problem with tab characters is that different editors set different tab stops. You can use the expand command to remove tabs before submitting your program.
NOTE: It is perfectly fine, and even encouraged, to use tabs while programming. Many editors, such as emacs do a nice job of automatically indenting Java source files. Just remove the tabs before submitting our code.
Limit your source lines to 80 characters. This may seem a bit old fashioned with high resolution displays, but it is a good exercise and long lines are by no means necessary. Keeping the lines within 80 characters makes it easy to view the source code from many different editors without worrying about unexpected line wrapping.