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

CPSC 219: Assignment 1 (Marking)

Score Letter
A 74 - 76
A- 70 - 73
B+ 65 - 69
B 60 - 64
B- 55 - 59
C+ 49 - 54
C 43 - 48
C- 37 - 42
D+ 31 - 36
D 24 - 30
D- 17 - 23
F 0 - 16

SUBMISSION REQUIREMENTS

Item

Effect on grade

Insufficient or missing contact information in the body of the email Maximum of 2 marks lost1
Incorrect or missing information in the subject line of the email Maximum of 4 marks lost1
1 (Getting any marks for the assignment assumes of course that we can still figure out who you are)  

 

PART I: ROCK-PAPER-SCISSORS

Program functionality

Actual mark

Max

  Introduction   1
  Conclusion/signoff   1
  Menu of allowable gestures   1
  Reads in a player's selection   1
  Checks for invalid gesture and assigns the appropriate foul   4
  Upper or lower case selection allowed   3
  Determines game outcome (win, loss, tie)   9
  Allows the game to run multiple times   3
  Tracks and displays the score   2
  TOTAL   25
     

Documentation

Actual mark

Max

  Program version number   1
  Limitations   1
  Description of the algorithm   2
  List of features   4
  TOTAL   8
       

Style

 

 

  Naming conventions (e.g., variable names)   2
  Appearance and whitespace   2
  Consistency of formatting   2
  Variables are initialized before being used   1
  TOTAL   7

 

PART II: ENCRYPTION

Program functionality

Actual mark

Max

  Reads in the phrase to be encrypted   2
  Debug mode   6
  First encryption algorithm: Caesar cipher   6
    Shifts the ASCII value forward by one: 2 marks    
    Alphabetic values are rotated and not shifted (Z -> A, z -> a): 2 marks    
    Highest ASCII value rotated to the lowest value (127 -> 0): 2 marks    
  Second encryption algorithm: Bitwise negation (1 mark if works for single char)   4
  Checks that the choice of encryption algorithm was correct   2
  TOTAL   20
     

Documentation

Actual mark

Max

  Program version number   1
  Description of the algorithm   4
  List of features   4
  TOTAL   9
       

Style

 

 

  Naming conventions (e.g., variable names)   2
  Appearance and whitespace   2
  Consistency of formatting   2
  Variables are initialized before being used   1
  TOTAL   7