Question: Java Given a set of decimal values entered by the user in table format consisting of 3 rows and 4 columns, print the table, the

Java

Given a set of decimal values entered by the user in table format consisting of 3 rows and 4 columns, print the table, the sum of each column, the sum of the columns, the average of the columns and the value and index of the highest and lowest values in the table.

Sample Program running: Enter 4 columns of decimal values

1.1 1.2 1.3 1.4

Enter 4 columns of decimal values

2.1 2.2 2.3 2.4

Enter 4 columns of decimal values

3.1 3.2 3.3 3.4

The Matrix:

1.1 1.2 1.3 1.4

2.1 2.2 2.3 2.4

3.1 3.2 3.3 3.4

The sum of the columns

6.3 6.6 6.9 7.2

The average of the columns

2.1 2.2 2.3 2.4

The highest value in the table 3.4 is at row 2 and col 3

The lowest value in the table 1.1 is at row 0 and col 0

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!