CLEAR
USE XSCJ
SCAN
  QZCJ=平时成绩*0.2+期末成绩*0.8
  DO CASE
     CASE  QZCJ>=90
       DJ="优秀"
     CASE  QZCJ<90 .AND. QZCJ>=80
       DJ="良好"
     CASE  QZCJ<80 .AND. QZCJ>=70
       DJ="中等"
     CASE QZCJ<70 .AND. QZCJ>=60
       DJ="及格"
     OTHERWISE
       DJ="不及格"
   ENDCASE
   REPLACE 级别 WITH  DJ
ENDSCAN
LIST
USE
RETURN
 
