How exactly would you write a function which has three parameters, an integer k and two arrays. One array is an array of integers; the other is an array of numbers with decimal places. The function reads k lines of data, each of which contains two values.