Exercises in Information Management
Exercises in Information Management
Exercises in Information Management
BSIT-2A
EXERCISES AND LECTURES IN INFORMATION MANAGEMENT
EXERCISE 1:
SOURCE CODE:
Public Class Exercise1
choice = LCase(TextBox1.Text)
Select Case choice
Case "r"
Label2.Text = "Red"
Case "b"
Label2.Text = "Blue"
Case "y"
Label2.Text = "Yellow"
Case "g"
Label2.Text = "SENIOR"
Case Else
Label2.Text = "OUT OF RANGE"
End Select
End Sub
End Class
EXERCISE 2:
SOURCE CODE:
Public Class Exercise2
End Class
EXERCISE 3:
SOURCE CODE:
Public Class Exercise2
Else
MessageBox.Show("Access Denied!", "Password", MessageBoxButtons.OK,
MessageBoxIcon.Information)
End If
End Sub
End Class
EXERCISE 4:
SOURCE CODE:
Public Class Exercise4
EXERCISE 5:
SOURCE CODE:
Public Class Exercise5
EXERCISE 6:
SOURCE CODE:
Public Class Exercise6
SOURCE CODE:
Public Class Exercise7
n += 1
sum += n
ListBox1.Items.Add(n & vbTab & vbTab & sum)
If n = 10 Then
Exit Do
End If
Loop
End Sub
End Class
EXERCISE 8:
SOURCE CODE:
Public Class Exercise8