MCC - Marquez - CIS162AB - C++ Level I
Grading Criteria for Programming Assignments |
|
All programming assignments will be graded based on the quality of the source code and
program performance. Some of the items that will be considered include:
A. Variable Names:
Variable names should describe what the variables are being used for.
Variable names should be in lowercase (Camel-case). If the name consists several words
make the first word lowercase and capitialize each subsequent word.
Constant variables should be all uppercase and underscores should be used between words.
Constant variables should also be defined with const modifier.
Acceptable names: customerName, customerAddress, TAX_RATE, FEDERAL_RATE, etc.
Names must be consistent throughout the program(customerNumber, customerName).
Variables that are not used should not be defined, and excessive variables should not be used.
For class names, capitalize the first letter of each word, including the first word; ie SalesInfo.
B. Format:
The printout should have margins.
Statements should be indented and aligned (block format).
There should be white space between commands, operators, variables, and strings
in calculations and input/output statements.
Each line of code should contain one statement.
Open and close braces { } should be on separate lines with matching pairs aligned.
C. Internal Comments:
There should be enough comments in the program so that someone unfamiliar with the program's
definition could clearly understand the program. The comments should be informative and concise.
The first comment should include the assignment number, student's name and class time.
Document each section of code.
Add comments to explain complex logic or unusual logic.
Make sure comments are complete, make sense, and acturately describe the code.
D. Correctness:
Program should compile.
Program must calculate and displayed all information defined in the program assignment.
Program should correctly calculate all values.
Program must incorporate new commands or techniques introduced just prior to the assignment.
E. Ease of Use:
The program should be easy to use and provide appropriate user prompts.
Outputs should be labeled correctly and displayed in an attractive manner on the screen.
F. Other:
If other points are subtracted from your program comments will be provided.
Revised: 08/15/2005 - www.mc.maricopa.edu/~marquez/cis162ab/p00_grading_criteria.html