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
Slav-nsk [51]
3 years ago
6

Given an array of ints named x and an int variable named total that has already been declared, write some code that places the s

um of all the elements of the array x into total. Declare any variables that you need.
Computers and Technology
1 answer:
Marizza181 [45]3 years ago
8 0

Answer:

Following are the code:

Code:

total = 0; //assign value to total variable.

for (int i=0; i<x.length; i++) //for loop

{

total=total+x[i]; //add all array elements in total variable.

}

Explanation:

In the following question, it is defined that x and total is variable. Where variable x is an integer type array and total is an integer variable. we define some code for calculating the sum of the array element. In the above code, we use for loop that calculates sum of array elements that can be described as:

  • To calculate the sum we use the total variable. In total variable, we assign value 0.
  • Then we define for loop in loop we use total variables that add all array (x[]) elements.

You might be interested in
How would I add a play again function to this code in python?
Sav [38]

Answer: Paper

Explanation:

3 0
3 years ago
A user is given Read permission to a file stored on an NTFS-formatted volume. The file is then moved to a different folder on a
Sav [38]

Answer:

Permissions do not apply here.

Explanation:

The reason is that FAT partitions do not have files and folders permissions, only have sharing permissions. Therefore, once the file has been removed from the NTFS partition, the restrictions that once applied to it are now gone.

5 0
4 years ago
Tax preparation software can help prepare and file your taxes by _________.
ludmilkaskok [199]

Answer:

B. Posing questions to collect necessary information

Explanation:

Tax preparation software serves as software that makes filing as well as preparation of tax to be easier.

3 0
2 years ago
Which action should you take when sending a large attachment?
zlopas [31]
Cancel out other tasks, let the internet focus upon the one attachment.
7 0
3 years ago
Select the correct answer from each drop-down menu.
elena55 [62]

Answer:

1) fair use

2) register

Explanation:

It will not be fair if you copy somebodies work without citing his/her name in your work. You cannot just do that, and this is confirmed by copyright law fair use. Hence fair use completes the above sentence.

Also, the owner of the work must register his work at copyright office for getting the copyright protection.

3 0
3 years ago
Other questions:
  • A _____ is a form of Web conferencing that uses streaming media technologies to broadcast video and/or audio over the Internet f
    15·2 answers
  • Which of the following is CORRECT about database managementsystem's languages?
    6·1 answer
  • Let's say you're creating a search stream in your hootsuite dashboard, to find mentions of the phrase vacation holiday getaway.
    15·1 answer
  • An internet service provider has three different subscription packages for its customers.  Package A: For $9.95 per month 10 ho
    10·1 answer
  • CJ is developing a new website blogging about cutting-edge technologies for people with special needs. He wants to make the site
    8·1 answer
  • True or False?
    8·1 answer
  • 3. Find the product of (a² +3a+5) x (a+7)​
    7·1 answer
  • During an upgrade for a new web server, Glen's company experienced a power surge. The power surge hit the new server, and now th
    10·1 answer
  • The __________ utility has the capability to manage users, create and administer user groups, and apply user rights to those use
    8·1 answer
  • Can rank u r guys in rocket leagye
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!