Write a program to Print the result of student with total marks and percentage.
- Get link
- X
- Other Apps
Write a
program to Print the result of student with total marks and percentage.
Public Class Form1
Private Sub Button2_Click(sender As
Object, e As EventArgs) Handles Button2.Click
TextBox4.Text = Val(TextBox1.Text) + Val(TextBox2.Text) +
Val(TextBox3.Text)
End Sub
Private Sub Button3_Click(sender As Object, e
As EventArgs) Handles Button3.Click
TextBox5.Text = Val(TextBox4.Text) * 100 / 300
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
If Val(TextBox5.Text) >= 80 Then
TextBox6.Text = "Merit"
ElseIf Val(TextBox5.Text) >= 60 And Val(TextBox5.Text < 80) Then
TextBox6.Text = "first
division"
ElseIf Val(TextBox5.Text) >= 50 And Val(TextBox5.Text) < 60 Then
TextBox6.Text = "Second
division"
ElseIf Val(TextBox5.Text) >= 40 And Val(TextBox5.Text) < 50 Then
TextBox6.Text = "Pass"
ElseIf Val(TextBox5.Text) < 40 Then
TextBox6.Text = "Fail"
End If
End Sub
End Class
Comments
Post a Comment