In Java, given a two dimensional array of size 4 ( 4 rows and 4 columns), how do
ID: 3671564 • Letter: I
Question
In Java, given a two dimensional array of size 4 ( 4 rows and 4 columns), how do I calculate the average (total sum/frequency) of (a) corners (b) left-to-right diagonal (c) inside only (d) right to left diagonal (e) each row (f) boundaries of the array . I am looking to not hard code but instead provide efficient algorithms and solutions. The test array is thus: (Pls use the clearer table)
0 2 4 6 7 9 11 13 14 16 18 20 21 23 25 27
Explanation / Answer
this code is not complete but it was upto some extent
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.