Solve in C++ please.
(Sum the major diagonal in a matrix) Write a method that sums all the nu in the major diagonal in an n X n matrix of double values using the foll header: public static double sumMajorDiagonal (double[][] m) Write a test program that reads a 4-by-4 matrix and displays the sum of elements on the major diagonal. Here is a sample run: Enter a 4-by-4 matrix
OR
OR