set talk off
use 成绩
for i=1 to recc()
cj=平时成绩*0.2+考试成绩*0.8
do case
case cj>=90
dj="优"
case cj>=75
dj="良"
case cj>=60
dj="及格"
otherwise
dj="不及格"
endcase
repl 等级 with dj
skip
endfor
use
set talk on
clearinput "输入考试成绩" to chj
if chj<60
dj="E"
else
if chj<70
dj="D"
else
if chj<80
dj="C"
else
if chj<90
dj="B"
else
dj="A"
endif
endif
endif
endif
? dj
clearinput SC
do case
case sc<60
?"不及格"
case sc>=60 and sc<90
?"通过"
otherwise
?"优秀"
endcase
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)