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