Lecture notes for Computer Science II by James Tam Return to the course web page

CPSC 233: Assignment 2 (Marking)

Part I Marking

 

Actual mark

Max

  Analysis of the first output statement   1
  Analysis of the second output statement   1
  Analysis of the third output statement   2
  TOTAL   4
     

SUBMISSION REQUIREMENTS

Item

Effect on grade

Parts I & II not submitted together in a zip file 4 marks lost
Uses static methods (other than the main method) Divide program functionality marks by two (rounded down)1
Program consists of only a single class: Divide program functionality marks by 2 (rounded down)1

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.

PROGRAMMING STYLE

 

Actual mark

Max

  Naming conventions Poor -2  Some poorly named identifiers +0   Good and clear throughout +2   2
  Layout and appearance of the Java source code (alignment, formatting, whitespace) Very cluttered, no whitespace -2 Slightly too much/too little +0 Appropriate use of whitespace: +2   2
  Layout and appearance of the program output (when the program is actually running) Very cluttered, no whitespace, formatting -2 Slightly too much/too little +0 Appropriate use of whitespace: +2   2
  Appropriate use of constants         1
  TOTAL         7
 

 

 

 

 

 

 

DOCUMENTATION

 

 

 

Actual mark

Max

  Documentation for this program should include: some sort of versioning system, a description of the features of the program (what it does rather than how it does it), limitations of the program (features not implemented or cases that it can't handle). No documentation: -4 Minor omissions or other problems: +2 Appropriate level of detail: +4   4
     

PROGRAM FUNCTIONALITY

   
  Actual mark Max
Program setup: Class Fun properly defined and located in it's own file   1
Program setup: Driver class instantiates instance of class Fun and begins program, driver located in it's own file   1
Attributes of class Fun properly initialized   1
Method: Introduction   1
Method: calculateAddressModifier (inputs 1, return 1, calculation 2, handle invalid 2)   6
Method: calculateAgeModifier (inputs 1, return 1, calculation 2, handle invalid 2)   6
Method: determineFundex (inputs 1, return 1, calculation 2)   4
Method: determinePetModifier (inputs 1, return 1, determine modifier = 7, handle invalid 2)   11
Method: displayFundex (display 1, error check 2)   3
Method: getAddress (display and prompt 1, return 1)   2
Method: getAge (display and prompt 1, return 1)   2
Method: getPet (display and prompt 2, return 1)   3
Method: start (main loop 1, calls to the other methods 2)   3
TOTAL FOR PROGRAM FUNCTIONALITY  

44

 

Total score (Part I & II) Letter
A 58 - 59
A- 55 - 57
B+ 52 - 54
B 49 - 51
B- 46 - 48
C+ 41 - 45
C 36 - 40
C- 31 - 35
D+ 26 - 30
D 21 - 25
D- 10 - 20
F 0 - 9

 

TOTAL MARKS

 

LETTER GRADE