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

CPSC 219: Assignment 2 (Marking)

Score Letter
A+ 71 - 72
A 66 - 70
A- 61 - 65
B+ 56 - 60
B 51 - 55
B- 46 - 50
C+ 41 - 45
C 36 - 40
C- 31 - 35
D+ 26 - 30
D 21 - 25
D- 16 - 20
F 0 - 15

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: ENCRYPTION

Program functionality

Actual mark

Max

  Prompts for the name of and reads in the name of the input file   1
  Opens and reads from the input file   4
  Opens and writes the encrypted text to the output file   8
  Implements the variant debug mode (encrypted ASCII codes written to another file)   4
  Checks for input/output errors   1
  A second program decrypts the text and writes it out to another file   4
  TOTAL   22
     

Documentation

Actual mark

Max

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

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: TEXT ANALYSIS

Program functionality

Actual mark

Max

  Reads text from the file into an array   2
  Checks for file input/output problems   1
  Performs an analysis of the text   10
    Character count (2 marks)    
    Word count (4 marks)    
    Count of sentences (4 marks)    
  Looks up each word with the UNIX dictionary program "dict"   4
  Implements a debug mode to display words being looked up with dict   2
  TOTAL   19
     

Documentation

Actual mark

Max

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

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