Free Practice Exercise 10

Copy and run the code below in SAS:

The RECORDS data set contains the homework, midterm and final scores for 10 students.

Below is the code the teacher used to calculate the final score for each student:

data total;
set records;
final_score = sum(homework + midterm + final);

If the scores for homework, midterm or final is missing, it should be treated as 0.

The FINAL_SCORE should sum up all three scores and give the student the final results for this particular subject.

Did you find any issue with the code above?

Get Solution