Question: please use eclipse the sample output is incorrect CPS 2231 Chapter 8 Lab 1 Spring 2019 1. Write a class, SumOrRows. The main method will

 please use eclipse the sample output is incorrect CPS 2231 Chapter

8 Lab 1 Spring 2019 1. Write a class, SumOrRows. The main

please use eclipse the sample output is incorrect

CPS 2231 Chapter 8 Lab 1 Spring 2019 1. Write a class, SumOrRows. The main method will do the following methods: a. Call a method, createAndFillArray which: defines a 2 dim array of 3 rows and 4 columns, prompts the user for values and stores the values in the array. b. Calls a method, printArray, which: prints the Array as shown below c. Cails a method, calcSums, which: returns 1 dimensional array, sumofRows, containing the sum of each row. Element at index position 0 will be the sum of row o; element at index position 1 will be the sum of row 1; the element at index position 2 will be the sum of row 2. d. Calls a method, printSums, which prints the numbers in the sumofRows array as shown in the sample output at the end of the lab. import java.util.* public class xxxx_ Chapter8Lab1( public static void main (String (1 args) int [1[] matrix-createAndFillArray0; printArray(matrix) int [1 sums - calcSums(matrix); printsums(sums); public static int [I[] createAndFiliArray) public static int [] calcSums (int [1[] table) public static void printSums (int [l sums) public static void printArray(int [[] matrix) CPS 2231 Chapter 8 Lab 1 Spring 2019 Note: To prom for (int row o; row

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!