* eg1.sas, program to compute course grades; options linesize=80; ; * Course grades, Probability, Spring 2002, Dr. Voss; data one; input name $ 2-16 hw2 test2 hw34 test34 hw56 test56 saslab exam; hwavg = (hw2+hw34+hw56+saslab)/4; hwavg = round(hwavg,0.1); average = round( (hwavg+test2+test34+test56+2*exam)/6, 0.1); lines; Rowdy Raider 76 80 93 66 87 85 85 75 Ralph Nader 68 87 78 82 69 73 73 81 Mike Beemer 75 72 62 98 77 71 82 77 Linda Carter 77 82 75 76 79 86 75 80 Joe Williamson 75 78 72 81 70 75 79 83 Pete Maravich 89 78 75 85 74 81 75 74 Cathy Healy 83 93 83 87 72 68 77 74 Martha Stewart 73 71 77 80 81 74 71 74 George Bush 85 67 85 85 78 76 87 72 Una Magilacutty 64 80 69 78 87 77 87 75 ; proc sort; by name; proc print; title 'Course grades, Probability, Spring 2002, Dr. Voss'; ; run; Course grades, Probability, Spring 2002, Dr. Voss 1 11:17 Monday, September 4, 2006 Obs name hw2 test2 hw34 test34 hw56 test56 saslab exam hwavg average 1 Cathy Healy 83 93 83 87 72 68 77 74 78.8 79.1 2 George Bush 85 67 85 85 78 76 87 72 83.8 76.0 3 Joe Williamson 75 78 72 81 70 75 79 83 74.0 79.0 4 Linda Carter 77 82 75 76 79 86 75 80 76.5 80.1 5 Martha Stewart 73 71 77 80 81 74 71 74 75.5 74.8 6 Mike Beemer 75 72 62 98 77 71 82 77 74.0 78.2 7 Pete Maravich 89 78 75 85 74 81 75 74 78.3 78.4 8 Ralph Nader 68 87 78 82 69 73 73 81 72.0 79.3 9 Rowdy Raider 76 80 93 66 87 85 85 75 85.3 77.7 10 Una Magilacutty 64 80 69 78 87 77 87 75 76.8 77.0