Hi I was hoping I might as a few questions concerning organising data in arrays
for example, say I have 3 arrays, int array1, int array2 and float array3
array1 is a set of 20 roles of the dice. So I role a dice, and that number is saved in the array1, then I role the dice again and the next number is saved in array1 etc until 20 readings are saved.
each dice value, has a number of points attached to it.
so a dice roll of 1 is worth 5 points, 2=10, 3=15, 4=20, 5=25, 6=30
teh user rolls the dice 20 times, each time typing in the result and the code saving it into the array1
what technique would I then use to get the code to automatically calculate the points for each dice roll and save that in another array?
hopefully this isnt too complicated, Im just trying to understand how you would manipulate data using arrays
thank you and all the best