Question: Java 1 As simple as possible please QUESTION 1 Write a Java program that asks the users to enter an integer number n. You then
QUESTION 1 Write a Java program that asks the users to enter an integer number n. You then initialize a two-dimensional array with n rows and n columns and ask the user to fill it with real numbers. You then display the array along with the following information - The sum of all the numbers in the diagonal of the array (in bold red in the following example) - The maximum of the values in the upper triangle of the array (shown in red in the example For example: If the users enters the following array: 0 3.5 4 7.2 42.1 13 2 1.3 2 The sum of all the numbers in the diagonal of the array is the sum of 3,3.5, 2.1, and 2: 10.6 The maximum of the values in the upper triangle of the array is: 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
