Marking of Assignment 1
Only Questions 4 and 5 were marked. The maximum mark was 10.
For question 4 one mark was assigned for each of the
following:
- correct declaration of the function
- declaration of two variables (one index and one counter)
- initialization of the two variables (may be part of the 'for' statement)
- a loop (may be a 'while' or a 'for' loop)
- an 'if' statement to check if the character is lower-case
- increment of the counter (can be
- a 'return' statement that returns the count
Other algorithms may be possible and should get full marks if
they meet the requirements of the question.
In each case 1 mark was assigned if it was completely correct,
1/2 mark if there was a small error and 0 if it was incorrect.
Question 5 was marked out of 3, with 1/2 mark for each completely
correct line, zero for any line with mistakes.
APSC 380 Home Page