Question: 1. Write a method called twiceArray. This method takes an array of double type, it then multiplies each number in the array by 2, stores
1. Write a method called twiceArray. This method takes an array of double type, it then multiplies each number in the array by 2, stores the new number back in the array and returns the array back to main.
2. Write a method called xArray. This method takes an array of type double, and another variable of type double (I will call this variable x). It then multiplies each number in the array by x, stores the new number back in the array and returns the array back to main.
This is to be done in Java Oracle and if possible done in one class. Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
