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
Ede4ka [16]
3 years ago
14

Write a method with the signature "float sumArray(float[] data)" that takes an array of floats, and returns their sum.

Computers and Technology
1 answer:
My name is Ann [436]3 years ago
8 0

Answer:

I will code in JAVA.

Preconditions:

  • The float array of data are declared and initialized.

public float sumArray(float[] data) {

float sum = 0;

for(int i = 0; i < data.length; i++) {

   sum = sum + data[i];

  }

return sum;

}

Explanation:

First, you have to declare a variable sum of type float and initialize with 0. In addition, this method has a for-loop to go through whole array of data and each element is added to the float value to sum. When the for loop ends, the sum variable is returned.

You might be interested in
_______ technology is used in many hospitals to verify that the correct medication is being dispensed to the applicable patient.
Zepler [3.9K]
Barcode hospital operating suites, cardiac and intensive care units.
8 0
3 years ago
Adam has to write a paper where the margins need to be set to these measurements: Left: 1.5" Right: 4" Bottom: 1" Top: 1"
Sholpan [36]

In Microsoft Word, he should go to Page Layout and then to Margins.

8 0
4 years ago
Surrendering to digital distractions can result in a disappointed
Alja [10]

Answer:

I would say true

Explanation:

4 0
3 years ago
Read 2 more answers
Choose the term that matches each description.
lutik1710 [3]

Answer:

operating systems, word software, computer concepts for end users

Explanation:

operating systems allow users to interact with computer hardware and application software.

word software allows users to complete specific tasks, such as creating a document.

computer concepts for end users allows programmers to create new applications.

7 0
3 years ago
a website that's sponsored by a college or university will typically end in the _______ suffix. a. .mil b. .gov c. .org d. .edu
Masja [62]

The website URL will usually end in the .edu suffix

So, your answer is D- .edu.

Hope I helped!

5 0
3 years ago
Other questions:
  • If a = 3 and b = a+3 find value of b.
    14·2 answers
  • __________________ are evaluations of a network
    6·1 answer
  • To open computer manger you would
    13·1 answer
  • Does the game best fiend need wifi to play on the app?
    8·2 answers
  • Explain the role of the network layer and Internet protocol (IP) in order to make internetworking possible.
    8·1 answer
  • Will a logic error be found if a program is compiled?
    5·1 answer
  • A bank has reworked its mortgage application process so that several steps are handled by computer software, and some steps are
    11·1 answer
  • Which of the following organizations offers a family of business management system standards that details the steps recommended
    12·1 answer
  • Which of the following allows the transmission of voice and often video communication over the internet?
    12·1 answer
  • Two threads try to acquire the same resource at the same time and both are blocked. Then, they continually change their states i
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!