Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managerial Accounting

Authors: Susan V. Crosson, Belverd E. Needles

8th Edition

9780618777174, 618777180, 618777172, 978-0618777181

Students also viewed these Databases questions