Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Observe the tollowing code Sub ArrayExercise _ 3 ( ) Dim MyArray ( 2 , 3 ) As Integer MyArray ( 0 , 0 )

Observe the tollowing code
Sub ArrayExercise_3()
Dim MyArray (2,3) As Integer
MyArray(0,0)=10
MyArray(0,1)=10
MyArray(0,2)=10
MyArray(0,3)=10
MyArray (1,0)=20
MyArray (1,1)=20
MyArray (1,2)=20
MyArray(1,3)=20
MyArray(2,0)=30
MyArray(2,1)=30
MyArray(2,2)=30
MyArray (2,3)=30
For 1=0 To 2
For j=0 To 3
Cells(1+1,j+1)* Value =MyArray(1,j)
Next Observe the following code
Sub ArrayExercise_3()
Dim MyArray (2,3) As Integer
MyArray(0,0)=10
MyArray(0,1)=10
MyArray(0,2)=10
MyArray(0,3)=10
MyArray(1,0)=20
MyArray (1,1)=20
MyArray(1,2)=20
MyArray(1,3)=20
MyArray (2,0)=30
MyArray(2,1)=30
MyArray (2,2)=30
MyArray(2,3)=30
For 1=0 To 2
For j=0 To 3
Cells(1+1,j+1)* Value =MyArray(1,j)
Next f
Next 1
End Sub
Their output must be like this
Using this code as example to manage a two
dimensional array. Develop three subroutine to
perform the following task
Obtain the average per column.
Obtain the average per row.
Obtain the total average of the entire table.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions