Write a method that takes two parameters, a double[] array
and a double value
and return the array with each element multiplied by value
For example:
multiplyArray(new double[]{1.0, 2.0, 3.0}, 0.5)
Should return an array with the elements:
[0.5, 1.0, 1.5]