Course web page: Introduction to Computer Science for non-majors II James Tam Return to the course web page

CPSC 219: Assignment 2 (Marking Key)

    Your score Max score

Coding style (marks independent of program functionality)

   
 
  • General style conventions followed (properly aligned source code & appropriate whitespace, good naming, simple expressions, methods implement 1 task and not exceed 1 screen in length): 0 = never, 6 = sometimes, 12 = always
  12
 
  • Information hiding/encapsulation employed appropriately
  3
 
  • Attributes and methods are logical to the class definition
  5
 
  • Each class consists of at least 2 methods (except the Driver & Mode class)
  6
 
  • Static variables employed (unless otherwise allowed, debugging flag excluded)
  -4
 
  • The code for the 3 classes are not included in its own file: -3 marks for each class not in it's own file
   
 

Sub total

 

26

Documentation (marks independent of program functionality)

   
 
  • Header documentation includes full name and tutorial section
  3
 
  • Some form of versioning system is demonstrated in the header documentation
  2
 
  • Each function/method is documented (similar to documentation for the entire program but applies only to that function/method)
  10
 
  • Overall program limitations documented
  1
 
  • Overall program features documented
  6
 

Sub total

 

22

Functionality (only qualify for these marks if the program runs: note some features obviously requires other features to be implemented before credit will be granted)

   
 
  • Able to quit game
  2
 
  • Debug mode employed
  6
 
  • Biosphere case 1 properly handed
  2
 
  • Biosphere case 2 properly handed
  4
 
  • Biosphere case 3 properly handed
  4
 
  • Biosphere case 4 properly handed
  6
 
  • Biosphere case 5 properly handed
  8
 
  • Biosphere case 6 properly handed
  8
 
  • Biosphere case 7 properly handed (must handle cases 1 - 5 properly to get credit)
  14
 
  • Biosphere case 8 properly handed (must handle cases 1 - 6 properly to get credit)
  14
 

Subtotal

 

68

       

UML Class Diagram

   
 
  • Class Biosphere
  4
 
  • Class Critter
  4
 
  • Relationship and multiplicity
  2

 

Subtotal

 

10

Design requirements (may modify the raw score)

   
 
  • Implements static methods (other than 'main()')
Divide functionality marks by two1
 
  • Program consists of only one class (style marks will also be lost)
Divide functionality marks by two1
 
  • Functionality not assigned to the appropriate class as specified in the assignment description (e.g., the attacker implements a task that belongs to the defender).
Max loss of 8 marks to functionality (tallied after the above two modifiers, if applicable)

OVERALL ASSIGNMENT RAW TOTAL

 

126

GRADE POINT

 

4

1 These two penalties are cumulative so if a program was written using only one class and was full of static methods then the student's program functionality mark would quartered.

Min raw score GPA
0 0
40 0.7
50 1
53 1.3
56 1.4
59 1.5
62 1.6
65 1.7
68 1.8
71 1.9
74 2
76 2.1
78 2.2
80 2.3
82 2.4
84 2.5
86 2.6
88 2.7
90 2.8
92 2.9
94 3
96 3.1
98 3.2
100 3.3
102 3.4
104 3.5
106 3.6
108 3.7
110 3.8
112 3.9
114 4