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

CPSC 231: Assignment 4 (Marking)

SUBMISSION REQUIREMENTS

Item

Effect on grade

Contact information not included in the assignment submission -2 marks
   

 

PROGRAMMING STYLE

 

Actual mark

Max

  Naming conventions   1
  Layout and appearance of the source code (alignment, formatting, whitespace)   1
  Appropriate use of named constants   2
  Functions have a single well-defined task (3 = all, 2 = most, 1 = some, 0 = no functions)   3
  TOTAL   7

 

DOCUMENTATION

 

Actual mark

Max

  Documentation for the program as a whole   3
    Program versioning employed (1 mark)    
    The version or versions indicate features completed for that version (1 mark)    
    Description of the program limitations (1 mark)    
  Each function and the whole program is documented (All +2, most + 1, some 0, none -2)   2
  Completeness and correctness of the README file   2
 

TOTAL

 

7

 

PROGRAM FUNCTIONALITY

 Feature

Actual mark

Max

  Displays introduction   1
  Displays conclusion   1
  If starting positions are different from the ones specified in the starting file -2 marks    
  Displays world annotated with column and row numbering   1
  Runs simulation for a fixed number of turns   2
    Simulation runs for 20 turns (1 mark)    
    Simulation runs for a user specified number of turns (2 marks)    
  Cars can move from the west to the east   6
    Cars move forward one square (2 marks)    
    Cars can only move onto empty squares (2 marks)    
    Cars move diagonally if the square in front is blocked (2 marks)    
  Cars on the eastern most side are removed from the simulation   2
  Cars can enter the simulation   8
    Cars appear in the 3 west most squares (1 mark)    
    Cars only appear in empty squares (2 marks)    
    Cars appear based on a fixed probability (3 marks)    
    OR    
    Cars appear based on a user specified probability (5 marks: 1 for handling probabilities beyond the valid ranges, 4 getting and using the value from the user)    
  Cars can accelerate or stop   6
    Cars move 0 - 3 squares forward, instead of just one square (2 marks)    
    Cars only move multiple squares if the path from the destination to the source is clear (4 marks)    
  Debug mode implemented   3
  Potholes random appear   2
  Tracks and displays the three statistics (1 for each)   3

 

TOTAL

 

35

 

Alternate feature: program displays output graphically via QuickDraw rather than using text (input can still come from the console).

 

2

 

Total score Letter
A+ 49+
A 47 - 48
A- 44 - 46
B+ 41 - 43
B 38 - 40
B- 35 - 37
C+ 31 - 34
C 26 - 30
C- 22 - 25
D+ 17 - 21
D 12 - 16
D- 7   - 11
F 0   - 6

 

TOTAL MARKS

 

LETTER GRADE