Question
Can someone please explain this to me? I don't think I'm doing it right. public class PracticeExam { public static void main(String[] args) { int[][]
Can someone please explain this to me? I don't think I'm doing it right.
public class PracticeExam {
public static void main(String[] args) { int[][] data = { { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 }, { 0, 1, 2, 3, 4, 5, 6 } }; System.out.println(data[0][1]); // input: TODO prompt the user for // 1) a row number // 2) a column number System.out.println("Enter a row number from 1 to 8: "); int rowSum = sumRow(rowNum, data); System.out.println("Enter a column number from 1 to 7: "); int colSum = sumColumn(ColNum, data); // processing: TODO implment the methods below //int rowSum = sumRow(rowNum, data); //int colSum = sumColumn(colNum, data); double all = overallAverage(data); // output: TODO display the three answers // using a method named displayResults
displayResults = }
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started