/** Assignment 1 Question 1 * COMP 1006/1406 - Fall 2021 * * Computing a rolling average of data */ public class A1Q1{ public static double[] rollingAverage(double[] data, int width){ /* All input arguments must satisfy. We will only use valid input arguments when testing your code. data: 0 <= data.length <= Integer.MAX_VALUE for each value in data : -101.0 <= value <= 101.0 width: 1 <= width <= Integer.MAX_VALUE */ // this will be your output array double[] out = null; // add your code here! return out; } // You are NOT asked to write a program so this following main // method is not needed. However, you CAN write code here to help // test your methods. Just be sure that whatever you add here does not // public static void main(String[] args){ } }