㈠ vfp中怎麼寫分段給成績等級的程序 用三種循環結構分別
For循環的代碼:
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