Question: java In-class Tests Duration of test: 3 hours (online) Exercise 5: Playing with 2D arrays You are required first, to create a package called tests

java java In-class Tests Duration of test: 3 hours (online) Exercise 5: Playing

In-class Tests Duration of test: 3 hours (online) Exercise 5: Playing with 2D arrays You are required first, to create a package called tests in the project called OOSDI, and second, to design, write, run and test a Java Main Class, called Play2DArray, in the tests package Write a java program that initialize a 2D 4X4 array with integer values entered by keyboard. The program needs to do the following 1. Initialize a 2D 4X4 array of integers (called A4X4). And fill it by keyboard. a Display the element of the array as 4X4 (4 rows and 4 columns) b. Calculate and display the sum of each column of the array 2. Copy the same values of the (A4X4) array into a new One- Dimensional array (called A1D). a. Display the element of the array as ID (I rows and 16 columns). b. Calculate and display the average of all elements. 3. Copy the values of the (AID) array into a new Two- Dimentional (2x8) array (called A2x8) a. Display the element of the array as 2x8 (2 rows and 8 columns) b. Count the number of columns where all their clements are even. Example: Enter 16 let the 4X4 20 3021135411 7345 23 10 O24 1) 41175 69238199 H10 a) 21 30211173459238359340475 3 23 221 184117345 Number even count

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a stepbystep solution for the described Java program Step 1 Create the Package and Class Create a package named tests in your project OOSDI Cr... View full answer

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!