Question: java write a function vectorscale that takes two parameters an...
Write a function, vectorScale, that takes two parameters, an array of doubles, and a single double called scale. The function should return a new array where each element of the new array is the result of multiplying the corresponding element of the parameter array and the scale parameter.
For example, if the first parameter was an array with the elements 1.1, 2.2, and 3.3, and the second
parameter was 10.0, then the resulting array would contain 11.0, 22.0, and 33.0.
DO NOT write a complete program, write only the function.