Question: Visual basic language in windows form app. thanks! 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
Visual basic language in windows form app. thanks!
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
Get step-by-step solutions from verified subject matter experts
