MCC - CIS162AD
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,
capitialize each significant word.
The first three letters should indicate the data type (intQty, strFirstName, decTaxAmount).
Constant variables should be all uppercase and underscores should be used between words.
(decTAX_RATE, decFEDERAL_RATE, etc.)
Constant variables should be declared using the keyword const.
Names must be consistent throughout the program (intCustomerNumber, strCustomerName).
Variables that are not used should not be defined, and excessive variables should not be used.
For control object names use a three letter prefix to indicate the type of object
(txtDepartment, lblPhone, btnExit).
For class-level variables add the letter c to the prefix (cdecTotalSales, cintTotalCount).
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:
At the top of the program include the assignment number and student name.
Be sure to include the assignment number and student name in the text property of each form.
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.
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 labels.
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: 12/15/2006 - www.mc.maricopa.edu/~marquez/cis162ad/cs0_grading_criteria.html