function G=pass(X) % G=1 means pass, G=0 fail, X vector with hand-in scores
M=[M1, M2, M3, M4, M5, M6]; % maximum on each hand-in
S=sum(X); % total points
G=1;
for i=1:6
if X(i)<0.3*M(i)
G=0;
end
end
if S< 0.5*sum(M)
G=0;
end
No 1. | November 6: This exercise is without teacher and the solutions are here as a pdf-file. |
No 2. | November 13. |
No 3. | November 20. |
No 4. | November 27. |
No 5. | December 4. |
No 6. | December 11. |