Results 1 to 2 of 2
- 09-28-2011, 07:42 PM #1
Looping over averages in an int[][] array
I need no add an average to ever member in this int[][] array without using about 256 lines of code to replace it. I am adveraging the height of a grid of squares like this:
[a][b][c][d][e] with c being the average of a and e, and b being the average of a and c, and so on. It gets more complicated though:
[a][b][c][d][e]
[f] [g][h][i] [j]
[k] [l][m][n][o]
[p][q][r] [s] [t]
[v][w][x][y][z] (don't yell that I missed "u"!)
So h is the average of m and c, and i is the average of c, e, m and o. This has to be done for a 162 grid.
-
Re: Looping over averages in an int[][] array
I think that I speak for all in wishing you much success in this assignment.
If you get stuck, please show us your code and ask as specific a question as possible, and we'll do our best to help you.
Similar Threads
-
Beginner Loops for averages
By mobosecomin in forum New To JavaReplies: 6Last Post: 10-17-2010, 09:17 PM -
Problem with Sums and Averages in Sales Report
By DavidEvans in forum New To JavaReplies: 9Last Post: 04-21-2010, 08:57 PM -
Looping Array Elements
By enzyme in forum New To JavaReplies: 3Last Post: 11-26-2009, 04:35 PM -
Averages of user inputed values (Need Help)
By Zebra in forum New To JavaReplies: 2Last Post: 04-16-2008, 01:51 PM -
[SOLVED] Integers (averages and remainders)...need help
By Zebra in forum New To JavaReplies: 4Last Post: 04-16-2008, 01:26 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks