Event Driven Programming
Event Driven Programming
Use Table 1 to write a program to input mark attained by a student then output grade in
a given course unit using select case. Attach the code in a command button click event.
End Sub
End Sub
End Class
2. Write a Visual Basic program to output the following series 1, 2 . . 99, 100 using Do
While...Loop.
End Sub
End Class
3. Using With … End With statement write a subprogram that will set Text1 properties as
follows; font size =14, bold, color = red, text= “ Hello World”
(4 marks)
4. Write a program code in Visual Basic using a CASE statement to output the type of
award of an employee given the number of years worked.
Module MainModule
Sub Main()
Dim yearsWorked As Integer
Console.ReadLine()
End Sub