1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
aleksandr82 [10.1K]
4 years ago
6

Compute the sum of the values in data_array, instead of using the sum() function. To do this, you must "accumulate" a result, wh

ich means that you first create a variable, called data_array_sum, to hold the accumulating result and initialize it to 0. Then loop through your array, updating the accumulating data_array_sum by adding each data_array value as you go: data_array_sum = data_array_sum + data_array(i);
Computers and Technology
1 answer:
Dmitry [639]4 years ago
8 0

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.

You might be interested in
What does "FDDI" stand for in Technology?
Komok [63]
Pretty sure it's Fiber Distributed Data Interface
6 0
4 years ago
Read 2 more answers
What are the events?
erastovalidia [21]

Answer:

a thing that happens or takes place, especially one of importance.

8 0
3 years ago
It's not necessary in a field to have .
ozzi

it's not necessary in a field to have .

6 0
3 years ago
Which spreadsheet toolbar displays options such as Cut and Paste?
Colt1911 [192]
The answer would be ''Drawing Toolbar'' and you can find this inside your mouse area, where u click the right button (right side) and it shows a small chart/toolbar where it gives you the options to copy, cut, paste and more.
4 0
3 years ago
A/an ____ file saves a workbook as a comma-delimited text file for use on another windows operating system??
aleksandrvk [35]

Answer:

The correct option is D

D) CVS

Explanation:

A CVS file saves a workbook as a comma-delimited text file for use on another windows operating system. It ensures that line breaks, tab characters and other characteristics are interpreted correctly.

A CVS file stands for Comma Separated Value file, which basically allows the data to be saved in tabular format. However they differ from other spreadsheet file types because you can only have a single sheet in a file. Moreover, you cannot save cell, column or row in it.

7 0
3 years ago
Other questions:
  • Java languageThe cost to ship a package is a flat fee of 75 cents plus 25 cents per pound.1. Declare a constant named CENTS_PER_
    5·2 answers
  • External hard disks use different technology than internal hard disks. ture or false
    6·1 answer
  • True or False
    13·1 answer
  • Word processing software, spreadsheet software, database software, and presentation software are examples of what category of co
    6·1 answer
  • Of the key reasons for creating organizational units which of the following is not one of them?
    13·1 answer
  • Where Can I Get Actual Microsoft AZ-900 Exam Questions?
    11·1 answer
  • What would you have to know about the pivot columns in an augmented matrix in order to know that the linear system is consistent
    13·1 answer
  • The ____ documents a system at the end of the design phase, identifies any changes since the beginning of the project, and inclu
    10·2 answers
  • Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicatin
    6·1 answer
  • A(n) _____ is a flexible tool used to analyze data using reports that do not have a predetermined format.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!