Question: Complete the DATA step below to determine the agegroup and grade. If the age is less than or equal to 39 then age group

Complete the DATA step below to determine the agegroup and grade. If

Complete the DATA step below to determine the agegroup and grade. If the age is less than or equal to 39 then age group is 'Younger group' and grade is calculated by taking 40% of midterm and 60% of final exam; if age is bigger than 39 then it is 'Older Group' and grade is the average of midterm and final exam. data Grades; length Gender $1 Quiz $ 2 AgeGroup $ 13; infile 'C:\books\learning\Grades.txt' missover; input Age Gender Midterm Quiz FinalExam; *Add missing lines of code. Missing lines can be more than one. Be very careful to syntax; run; title "Listing of Grades"; proc print data=Grades noobs; run;

Step by Step Solution

3.31 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

data Grades length Gender ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!