Answer:
Explanation:
The following code is written in Python. It creates a function that is called split and takes an array of integers as a parameter. Then it loops through that array and divides the current element by 2 and saves it in a variable called half. Then it adds half two times into a new array called new_array. Finally, once the loop is over it returns the new_array.
def split(my_array):
new_array = []
for x in my_array:
half = x / 2
new_array.append(half)
new_array.append(half)
return new_array