java declare double variables x1, x2, x3, and x4, and read each variable from input in that order. find the average of x1, x2, x3, and x4 and assign the result to avgnum. the calculation is: ex: if the input is 1.0 3.0 4.0 3.5, the output is: