RUBRIC FOR LAB4

 

Student Name

 

 

Point Value

Description

Comments

1

1. Program Structure

a.       Is the code readable, i.e. properly indented, lines skipped, etc.

b.      Variable declarations are at beginning of main function

c.       Use descriptive variable names

d.      Skip a line after declarations

e.       Indent code inside curly brackets

f.       Put spaces between logical sections of code

g.      Long program lines don’t wrap outside of indented margins

 

1

2. Comments:

a.       Comments appropriately describe code

b.      Comments that describe blocks of code appear above that block of code

c.       Comments that describe a single line of code are placed next to that line of code.  If there isn’t room, the comment is placed above the code.

d.      Comments don’t wrap outside of indented margins

e.       Comments are grammatically correct (Yes spelling counts!!)

 

1

3.      Basic program analysis, extended program analysis and algorithm are included as a comment at the top of the program, along with a description of the problem.  Do these relate to what was coded?

 

2

4. Testing program logic:

a.       Is the program run with inputs that test for errors and logical correctness?

b.      Does the program work and give the correct output for all possible logical paths?

 

1

5. Is the output well organized and easy to understand by the user?

  

 

4

6. Program code:

a.       Program code is correctly written

b.      No redundant code.

c.       Does the code FULLY answer the problem?

d.      Use all the variables you declare.

e.       Code should be efficient, uses memory efficiently