Author | Message |
---|---|
dvictor4
Posts: 34
|
Posted 22:29 Nov 30, 2016 |
The averages for each row, column, and diagonal is going to be a decimal number (double) right? Last edited by dvictor4 at
22:29 Nov 30, 2016.
|
cgome106
Posts: 19
|
Posted 22:46 Nov 30, 2016 |
it shouldn't be, since all the values in the array are all int values |
dgomei
Posts: 7
|
Posted 00:14 Dec 01, 2016 |
I made it equal to average by casting them with double later |
dgomei
Posts: 7
|
Posted 11:20 Dec 01, 2016 |
For the minor and major angles, does it have to be summed together or separate?
|
dvictor4
Posts: 34
|
Posted 11:24 Dec 01, 2016 |
A sum for the major diagonal and another sum for the minor diagonal. |
dgomei
Posts: 7
|
Posted 11:26 Dec 01, 2016 |
okay, thanks |
kknaur
Posts: 540
|
Posted 13:36 Dec 01, 2016 |
Actually, you should always assume the average to be a floating point value unless it specifically says to compute it as an integer. |
dvictor4
Posts: 34
|
Posted 13:41 Dec 01, 2016 |
Got it thanks. |