Question: 2. The ascii data file called grades.dat @ contains five exam scores (Score1, Score2, .., Score5) for each of four students in a class. The


2. The ascii data file called grades.dat @ contains five exam scores (Score1, Score2, .., Score5) for each of four students in a class. The first column contains the student id number (ID). The passing grade on each of the five exams was determined to be 65, 70, 60, 75, and 66, respectively. Your job is to read the ascii data into a temporary SAS data set called answers. Then, determine the number of exams passed by each student (Passed). In doing so: . you should take advantage of arrays wherever possible . you should take advantage of shortcut lists, such as numbered range lists, named range lists, or special name lists, wherever possible . you should use temporary array elements wherever possible . you should use iterative DO loops wherever possible When all is said and done, your answers data set should contain seven variables: ID (student id number), the five exam grades (Score1, Score2, .., Score5), and the number of exams each student passed (Passed). Print the resulting answers data set.\f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
