Unformatted text preview: l %Calculate combined grade for homework and quizzes hwq=quiz+0.15*hw; nhw=size(hw,1); n %Calculate quiz-hw average dropping the lowest ndrop scores if ndrop==1 hwqmean=(sum(hwq)-min(hwq))/(nhw-1); else hwqsort=sort(hwq); hwqmean=(sum(hwq)-min(hwq)-hwqsort(2))/(nhw-2); end % Calculate effective participation score (only 30% for 6-10, and none for more than 10). particip=min(particip,10.); if particip>5 particip=5+0.3*(particip-5); end e %Calculate course score score=0.3*hwqmean+0.6*mean(exam)+2*particip+2*sum(project)/100. %Corresponding letter grade igrade=find(score >=lower); grade=letter(igrade(1))...
View
Full Document
- Spring '10
- bakcer
- Harshad number, quiz grades, current course average, lowest ndrop scores
-
Click to edit the document details