Question: Write a Java program to do the following: 1) Create 2D array of size 4 rows by 3 columns of type integer. 2) Prompt

Write a Java program to do the following: 1) Create 2D array of size 4 rows by 3 columns of type integer. 2)  

Write a Java program to do the following: 1) Create 2D array of size 4 rows by 3 columns of type integer. 2) Prompt the user to enter integer values and store them in the array. 3) For each row, find if most elements are positive, or negative. Sample Input/output: Enter values for row 0:2 8 2 Enter values for row 1: -3-5-4 Enter values for row 2:9-5-3 Enter values for row 3:3 2 -6 Most values in row 0 are positive Most values in row 1 are negative Most values in row 2 are negative Most values in row 3 are positive

Step by Step Solution

3.37 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question asks for a Java program that will 1 Create a 2D array of size 4 rows by 3 columns of type integer 2 Prompt the user to enter integer valu... 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 Programming Questions!