Question: in visual basic language You are to place the following array into a program: Dim values() as Integer = {16,65,7,102,47,22,20,150,96,225,376,3,50,62} Use a loop to determine

 in visual basic language You are to place the following array

in visual basic language

You are to place the following array into a program: Dim values() as Integer = {16,65,7,102,47,22,20,150,96,225,376,3,50,62} Use a loop to determine the Weighted SUM value within the array, where the weight is the index +1. Example: A(O), A(1) and A(2) are three values in array A, and the weight are 1, 2 and 3, respectively. The weighted SUM = A(0)*(0 + 1) +A(1)*(1 + 1) + A(2)*(2 + 2). Weighted SUM can be found by using a loop to go through the array and add each value*weight to a total

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!