编程输入50个学生数学成绩,并统计显示的总分、平均分、最低分和最高分?
你加我吧!!我直接给你发一个程序!可以任意输入学生的数量用ACC多好呀
用汇编语言编程 编写一程序统计学生的数学成绩,分别归类90~99分,80~89分,70~79分,6
datasegment
creditdw76,69,84,90,73,88,99,63,60,25
mes1db60-69:$
mes2db70-79:$
mes3db80-89:$
mes4db90-99:$
mes5db0-59:$
v1db?
v2db?
v3db?
v4db?
v5db?
dataends
codesegment
assumecs:code,ds:data
mainprocfar
start:
movax,data
movds,ax
callcount
movah,4ch
int21h
mainendp
countprocnear
leasi,credit
movcx,0ah
m1:movbx,[si]
addsi,2
cmpbx,59
incv5
jmpm6;50-59
m7:cmpbx,69
incv1
jmpm6;60-69
m2:cmpbx,79
jgm3;70-79
incv2
jmpm6
m3:cmpbx,89
jgm4;80-89
incv3
jmpm6
m4:cmpbx,99
jgm6;90-99
incv4
jmpm6
m6:loopm1
movdx,offsetmes1;输出字符串及对应的人数
movah,09h
int21h
movdl,v1
adddl,30h
movah,02h
int21h
callcrlf
movdx,offsetmes2
movah,09h
int21h
movdl,v2
adddl,30h
movah,02h
int21h
callcrlf
movdx,offsetmes3
movah,09h
int21h
movdl,v3
adddl,30h
movah,02h
int21h
callcrlf
movdx,offsetmes4
movah,09h
int21h
movdl,v4
adddl,30h
movah,02h
int21h
callcrlf
movdx,offsetmes5
movah,09h
int21h
movdl,v5
adddl,30h
movah,02h
int21h
callcrlf
exit:
countendp
crlfprocnear;回车换行子程序
movdl,0ah
movah,02h
int21h
movdl,0dh
movah,02h
int21h
crlfendp
codeends
endstart