Answer:
public class TestClock {
public static void main(String[] args) {
int [] data_array = {1,2,3,5,3,1,2,4,5,6,7,5,4,3};
int data_array_sum =0;
for(int i=0; i<data_array.length; i++){
data_array_sum = data_array_sum + data_array[i];
System.out.println("Acumulating sum is "+data_array_sum);
}
System.out.println("Total sum is: "+data_array_sum);
}
}
Explanation:
Using Java programming language for this problem, we declare and initialize the array with this statement:
int [] data_array = {1,2,3,5,3,1,2,4,5,6,7,5,4,3};
Then created a variable to hold the sum values and initialize to zero:
int data_array_sum =0;
Using a For Loop statement we iterate through the array and sum up the values.