vb+ACCESS学生成绩管理系统
本人没有学过VB但是老师要求作业时这样的,自学了写的结果错误百出,还请大虾帮帮忙只要实现简单的查询,写入和删除等功能。最好是以前自己的毕业设计或者作业,我的邮箱86728...
本人没有学过VB 但是老师要求作业时这样的,自学了写的结果错误百出,还请大虾帮帮忙只要实现简单的查询,写入和删除等功能。最好是以前自己的毕业设计或者作业,我的邮箱867289282@qq.com 谢谢各位了
展开
2个回答
展开全部
lz。代码如下
Option Explicit
Dim rs As Integer
Dim cj As Long
Dim zcj As Integer
Dim pjz As Integer
Dim bjg As Integer
Dim jg As Integer
Private Sub Command1_Click()
Dim i As Integer
rs = InputBox("请问你要输入几个人的成绩?", "输入人数")
For i = 1 To rs
cj = InputBox("输入成绩")
If cj >= 60 Then jg = jg + 1
If cj < 60 Then bjg = bjg + 1
zcj = zcj + cj
Next i
Label1.Caption = "及格人数为:" & jg
Label2.Caption = "不及格人数为:" & bjg
Label3.Caption = "平均分" & zcj / rs
End Sub
Option Explicit
Dim rs As Integer
Dim cj As Long
Dim zcj As Integer
Dim pjz As Integer
Dim bjg As Integer
Dim jg As Integer
Private Sub Command1_Click()
Dim i As Integer
rs = InputBox("请问你要输入几个人的成绩?", "输入人数")
For i = 1 To rs
cj = InputBox("输入成绩")
If cj >= 60 Then jg = jg + 1
If cj < 60 Then bjg = bjg + 1
zcj = zcj + cj
Next i
Label1.Caption = "及格人数为:" & jg
Label2.Caption = "不及格人数为:" & bjg
Label3.Caption = "平均分" & zcj / rs
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询