Create a 2D array to store the marks of 4 modules for
3 students. Calculate the sum of all the marks for each
student and average mark for each student.
FORM DESIGN:
CODE:
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim itr, itr1, itr2 As String
Dim avg As Double
Dim sum As Integer
Dim Marks(,) As Integer = {{73, 84, 86, 56},
{36, 65, 29, 67},
{74, 97, 39, 78}}
For j = 0 To Marks.GetUpperBound(1)
itr = " "
For i = 0 To Marks.GetUpperBound(0)
itr &= Marks(i, j) & vbTab