Question: PLEAASE SOLVE IT AS SOON AS POSSIBLE. AND WRITE CODES IN JAVA LANGUAGE!!! Question 1 [25 PTS]: You are given an integer n followed by

PLEAASE SOLVE IT AS SOON AS POSSIBLE. AND WRITE CODES IN JAVA LANGUAGE!!!
Question 1 [25 PTS]: You are given an integer n followed by n*n numbers of type double which makes up a square matrix. You are expected to find the product of sum of numbers above the main diagonal and below it respectively. Note1: define a method which takes an array as input and returns the desired number. Note2: if the array is null or empty raise an exception which is later to be caught in main(). Output: Print the product with three digits after decimal point. Example: Input: 3 1 2 3 456 7 8 9 Input: 2 1.5 2.5 3.5 4.5 Input: 4 0111 10 11 1101 1110 Output: 209.000 Output: 8.750 Output: 36.000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
