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