Computer Science I for majors by James Tam

Return to the course web page

CPSC 231: Assignment 4 Marking Key

    Max score

Coding style (marks may be awarded independent of program functionality)

 
  Neat and presentable organization of source code with appropriate use of white space 2
  Neat and presentable program output 2
  Naming conventions: self-descriptive names using standard conventions for variables, constants, function names 3
  Use of named constants 1
  Deals with errors in a helpful and positive manner (repetition notes slides #46 - 47) 2
  Penalty: Boolean and mathematical expressions are not simple and easy to read -4
  Penalty: gross inefficiencies in program code (e.g., duplicated program code via cut and paste) -4
  Penalty: global variables employed (other than the debugging flag or flags) -4
  Penalty: program consists of fewer than 6 functions -10
  Special penalty: program does not implement any functions: max assignment grade point is 1.7 regardless of other style, documentation or functionality marks
 

Sub total for style

10

Documentation (marks may be awarded independent of program functionality)

 
  Header documentation: contains overall description of program. 3
  Header documentation: demonstrates some form of versioning system employed (date or version #) 1
 

Provides an accurate list of features / limitations (functionality not implemented) in the program  (1 marks for each feature listed as completed or as not completed x 16 features listed below). Miscategorizations or other inaccuracies will not be awarded marks.

16
  Penalty: Name, ID and tutorial section not included in the header documentation -6
 

Sub total for documentation

20

Functionality (only qualify for these marks if the program runs)

 
  Displays introduction 1
  Displays conclusion 1
  Displays directional menu 1
  Loads start positions from file 4
  Homer can move in the 4 compass directions (1 mark for each direction) 4
  Error message is displayed if player tries to move Homer in the 4 inter-cardinal directions 2
  Error message is displayed if player tries to enter a value higher than 9 for the direction 1
  Player can quit the game by entering '0' at the directional menu 1
  Debugging mode implemented (flag toggles and at least one debugging message is displayed) 2
  Game prevents Homer from moving onto occupied squares 4
  Lose game condition implemented: Homer drowns if moved onto water 4
  Homer can get distracted 4
  Lose game condition implemented: Homer can freeze in Alaska (only 2 marks if freezing occurs for 10 non-successive turns) 4
  Win game condition implemented: Homer reaching Springfield 4
  EPA agents can move (1 mark for each case) 9
  Lose game condition implemented: Homer captured by an EPA agent 4
  Sub total

50

     

OVERALL ASSIGNMENT TOTAL

80

Maximum grade point for assignment

4.3

 

Min score Grade point
80 4.3
79 4.2
78 4.1
77 4.0
76 3.9
75 3.8
74 3.7
73 3.6
72 3.5
71 3.4
70 3.3
68 3.2
66 3.1
64 3.0
62 2.9
60 2.8
58 2.7
56 2.6
54 2.5
52 2.4
50 2.3
48 2.2
46 2.1
44 2.0
42 1.9
40 1.8
38 1.7
36 1.6
34 1.5
32 1.4
30 1.3
26 1.2
22 1.1
18 1.0
14 0.7
0 0