COSC 311 Homework 1/5/2017 Compute prefix sums Distributed: 1/5/2017 Due: 1/10/2017 Write Java code to compute prefix sums of an array of ints. The prefix sums are put in a different array than the input. Do not smash the input data. Initialization: Initialize a 1D array with int values. The zeroth array data element must be 0. Output: The prefix sums. Each value in the prefix sum array is the sum of all the data array values from index 0 up to and including the current index value. Example: data 0 5 1 -3 2 0 4 prefSum 0 5 6 3 5 5 9 Turn in: Hardcopy of your code. In your code, include a header: [your name] [your URL] COSC 311 HW 01/05 WINTER 2017 Do NOT comment your code. Do not supply UML diagram for your code. Output for a run on data: 0 2 4 6 1