I have this piece of code for calculating average and everything is kinda hard coded for the size of the array. Now I have a need to increase the array size from 3 to a 10. I wonder if anyone can assist in finding a code (a For loop perhaps) to handle this properly?