%file data.m for function [y,yy,av,md,s]=grades(t1,t2,f,hw,tp,,m,g,gp)

% y=grades(t1,t2,f,hw,tp,m,g,gp); tj=testj,f=final,m=maxscore(t1,t2,f,hw)
% tp=term paper, hw=homework, g=average grade, gp=grade pts per std


t1=[15 26 22 31 12 24 21 31 17 32 5 15 7 20 22 20 18 19 18];
t2=[5 34 24 26 15 39 17 32 38 30 20 27 22 26 22 29 21 20 27];
f=[0 58 52 60 52 63 45 64 66 56 13 56 36 41 63 52 51 47 41];
hw=[12 258 244 239 207 258 230 260 227 267 166 231 174 185 210 ...
233 218 151 230];
tp=[0 4 3.9 4 3.3 4 3.7 4 4 4 3.3 4 0 3.7 4 4 4 3 3.5];
m=[40 40 70 270 4];
g=3.7;
gp=.7;
