Question: Code in Java TASK #0 Create a static method that accepts a 2D integer array and displays its contents to the console as shown. TASK

Code in Java

TASK #0

Create a static method that accepts a 2D integer array and displays its contents to the console as shown.

TASK #1

Create a static method that accepts 9 integer parameters and returns a 2D integer array containing the parameters as elements in the array. Numbers should be assigned indexes in row order [0][0][0][1]etc.

TASK #2

Create a static method that accepts no parameters and returns a 2D integer array containing randomly-generated values between 0 and 9. Numbers should be assigned indexes in row order [0][0][0][1]etc.

TASK #3

Create a static method that accepts 3 1D integer (length 3) arrays as parameters and returns a 2D integer array containing the 1D arrays as rows in the 2D array.

TASK #4

Create a static method that accepts 2 2D integer arrays as parameters and compares the arrays to determine if they are the same. Returns true if the arrays are the same (element by element comparison) and false otherwise.

TASK #5

Create a static method that accepts 2 2D integer arrays as parameters and adds one array to the other. Returns a new 2D array which is the result of the addition.

TASK #6

Create a static method that accepts 2 2D integer arrays as parameters and subtracts one array from the other. Returns a new 2D array which is the result of the subtraction.

TASK #7

Create a static method that accepts a 2D integer array and an integer as parameters and multiplies the array by the integer (scalar). Returns a new 2D array which is the result of the scalar multiplication.

TASK #8

Create a static method that accepts two 2D integer array as parameters and multiplies the arrays. Returns a new 2D array which is the product of the multiplication.

TASK #9

Create a static method that accepts a 2D integer array as its parameter. Returns a new 2D array with rows from the parameter array as columns and columns from the parameter array as rows in the returned array.

TASK #10

Create a static method that accepts a 2D integer array as its parameter. Returns true if the transpose of the array is equal to the parameter array (element by element comparison) and false otherwise.

TASK #11

Create a static method that accepts a 2D integer array as its parameter. Returns an integer which is known as the tracecalculated as shown below

TASK #12

Create a static method that accepts a 2D integer array as its parameter. Returns an integer which is known as the determinantcalculated as shown below

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!