shaywood_1991
New Member
Start out with a column of randomly generated numbers. There should be 300 numbers in the column. You will need at least 4 arrays in your program, each holding 300 values.
1. Bring the values that you generated in the first column in your spreadsheet into an array named FirstCol.
2.Convert the values into integers and save them into an array named SecondCol.
3. Loop through the values in SecondCol.
a)If the value is less than 10 put that value in an array named Less10.
b)If a value is equal to or greater than 10 but less than 20 put that value into an array named MessTwenty
c) All other values put in an array named MoreTwenty.
4. For each of the 3 arrays just generated, calculate the number of values in the array, the average of all the values in the array, the minimum value in the array, and the maximum value in the array. You should be able to do the last 3 tasks in one loop through the array.
5. For each of the three arrays generated in step 4, count the number of values in the array that are less than the average value you just found.
6.For each of the 3 arrays generated in step 4, display on the worksheet the number of values in the array, the average, the minimum, the maximum, and the number of values that are less than average.
Any help is appreciated. I cannot figure this code out for some reason.
1. Bring the values that you generated in the first column in your spreadsheet into an array named FirstCol.
2.Convert the values into integers and save them into an array named SecondCol.
3. Loop through the values in SecondCol.
a)If the value is less than 10 put that value in an array named Less10.
b)If a value is equal to or greater than 10 but less than 20 put that value into an array named MessTwenty
c) All other values put in an array named MoreTwenty.
4. For each of the 3 arrays just generated, calculate the number of values in the array, the average of all the values in the array, the minimum value in the array, and the maximum value in the array. You should be able to do the last 3 tasks in one loop through the array.
5. For each of the three arrays generated in step 4, count the number of values in the array that are less than the average value you just found.
6.For each of the 3 arrays generated in step 4, display on the worksheet the number of values in the array, the average, the minimum, the maximum, and the number of values that are less than average.
Any help is appreciated. I cannot figure this code out for some reason.