This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 08/27/2011 for the course AEROSPACE 3115C taught by Professor Bakcer during the Spring '10 term at University of Florida.
- Spring '10