Question (Java): Complete the following class methods. ThedotProduct method has been completed for you. Use your knowledge ofmethods and the descriptive name of the methods to determine whatyou should implement. What is printed? Indicate below:
public class soMuchMath {
// Create an array of size N and set each value to val staticdouble[] initArray(double val, int N) {
}
// Add the variable val to all elements (Note: do not *set* themto val!)
static void addValToArray(double[] arr, int N, double val) {
}
// Dot (inner) product of two vectors
static double dotProduct(double[] iaA, double[] iaB, int N){
double ans = 0.0;
for(int ii = 0; ii < N; ii++)
ans
PayPal Gateway not configured
PayPal Gateway not configured