Q) write a code that reads a given array and calculates the SUM of its elements.

Answers

Answer 1

Answer:

See the explanation below.

Explanation:

If don't know which language you are using, but the basic pseudo code for this problem will be:

variable sum = 0;

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

    sum += array[i];

}

print(sum);

Best Regard!


Related Questions

what does the U in fun stand for?​

Answers

Answer:

You and me

Explanation:

F is for friend and N is for anytime and anywhere

Write the program code to find the cube of numbers from 1-5. Also do the dry run by using the trace table. (Javascript)

Answers

Answer:

Following are the JavaScript program

< html >

< body >

<  script >

var k,t; // variable declaration

for (k = 1; i < 6; k++)  // iterating the loop

{  

t=k*k*k;// find the cube of number

document.write(k);   // display the cube root

document.write(" < / br > " );  // moves to the next line

}

< / script >

< / body >

< / html >

Output:

1

8

27

64

125

Explanation:

We used the script tag for creating the JavaScript program. Declared the variable "k" in the script tag.Iterating the for loop .In the for loop the k variable is initialized by the 1 This loop is executed less then 6 .In each iteration we find the cube of number in the "t" variable and display that number by using document .write ().

Which line of code will only allow a non-decimal point to be stored in a variable? candyCost = float(input("How much is the candy?")) candyCost = input("How much is the candy?") candyCost = int(input("How much is the candy?")) candyCost = str(input("How much is the candy?"))

Answers

Answer:

candyCost = int(input("How much is the candy?"))

Explanation:

# Mariah Mudd # 6/22/20 # Purpose:Things about me. def main(): print("My name is Mariah. I just turned 15. My favorite movie is Scarface. I listen to The Beatles, Elton Hercules John, and Queen 24/7. My favorite subject in school is English. I collect glass bottles. If i had 1 hour to live I would spend it riding my bike in a lightning storm. This is by far the coolest class I will take in my online school career.") main()

Answers

Answer:

I think this is nice.

Explanation:

When you connect several home devices using a wireless router, what network topology are you using? A. bus B. mesh C. star D. ring

Answers

Answer:

Star Topology

Explanation:

Because the definition of Star Topoplogy is: In star topology each device in the network is connected to a central device called hub. Unlike Mesh topology, star topology doesn’t allow direct communication between devices, a device must have to communicate through hub. If one device wants to send data to other device, it has to first send the data to hub and then the hub transmit that data to the designated device.

what is one current trend in information technology carriers?

Answers

Answer:

- employers expect that candidates should possess knowledge of various pathway careers.

Explanation:

Employers expect candidates.... that should be the answer to the question

Adam would like to reduce the size of an image that he inserted into a document. He selects the image and chooses the Crop option from the context menu. Which statement best describes what cropping does?
It resizes the image while keeping the entire image.
It resizes the image to the dimensions, horizontal and vertical, that are selected.
It allows users to trim the edges of the image, making the image smaller.
It allows users to reshape the image.

Answers

Answer:

it allows users to trim the edges of the image,making the image smaller.

Explanation:

Cropping refers to removing unwanted parts of a graphic hence can facilitate to reducing the size

Answer:

the answer for edg is C i just took the test

Explanation:

Identify at least five different Information Technology careers that you could pursue in your home state, and choose the three that appeal to you
the most. Out of the three, write a one-page essay describing which one would be your career choice and the educational pathway that you would
have to follow in order to obtain that career. Finally, identify at least three colleges, universities, or training programs that are suited to that career
choice. You can use the following resources to help you:​

Answers

Answer:Five careers within the Information Technology cluster that would be interesting to me are video game designer, software developer, database administrator, computer science teacher, and business intelligence analyst. Of those careers, being a video game designer, software developer, or business intelligence analyst sounds the most appealing to me. Out of all those choices, I think that being a business intelligence analyst seems the most interesting.

Business intelligence analysts work with computer database information, keeping it updated at all times. They provide technical support when needed and analyze the market and customer data. At times, they need to work with customers to answer any questions that they have or fix things as needed. The part that I would find most interesting would be collecting intelligence data from reports for the company for which I work. To complete the job, I would need to have great customer service skills, communication skills, critical thinking skills, and knowledge of computers.

Before I could find work as a business intelligence analyst, I would need to complete a bachelor’s degree in computer science to learn how to do computer programming and use other applications that I would need to know for the job. Some of the schools that have a great program for computer science are the University of California at Berkeley, Georgia Institute of Technology, and California Institute of Technology. Once I have completed a bachelor’s degree, I would continue on to get a master’s degree in the field, which would help me advance in my career and get promotions.

Explanation:

Now, Kim wants to add the technical terms she typically misspells to the PowerPoint built-in list. Which option should she use to add the terms?

-Proofing
-Advanced
-Language
-Ease of Access

Answers

Answer:

She should use Proofing

Answer: Proofing

Explanation:

A(n) _____ describes your core values and highest career goals. A. résumé B. objective statement C. qualifications profile D. personal mission statement

Answers

Answer: D.) Personal Mission Statement

Explanation: The personal mission statement refers to a write up which is usually written by an individual and it's tailored to embody one's complete definition in terms of core values, skills, attributes and most importantly present and future desires, goals and objectives. The statement of purpose is usually detailed and will showcase where an individual is currently placed while also showcasing how he or she intends to achieve future aspiration.

Answer:

The answer would be D.) Personal Mission Statement (APEX)

My Dell tablet was not opening...... what was wrong with it??? What can i do now.... How it can be repaired? Please Telll

Answers

Answer:

it is stuck if its stuck just long press on the power button

Explanation:

Perform a hard reset

Disconnect the AC adapter or power cord, and remove the battery (for Dell laptop PCs). ... Press and hold the power button for 15-20 seconds to drain residual power. Connect the AC adapter or power cord and the battery (for Dell laptop PCs)

if it is stuck just hold onto the power button for acouple of seconds

Trace en su cuaderno una hoja de cálculo de A1 a D15, escriba en cada celda un valor entre 100.000 y 500.000, luego escriba las fórmulas para hallar halle los siguientes valores: Sumar celdas columna B Restar celdas A12 menos D3 Multiplique Celdas columna C por celdas columna D Divida las celdas A11 hasta A15 entre celdas D11 a D15

Answers

Answer:

Vincent is a digital media professional. His bosses always praise his artwork. His company has just taken on a new project. Vincent has some thoughts and ideas about this new project that he wants to discuss with the senior employees. What kind of skills should he use to pitch his ideas?

Explanation   i had this on a quiz and past

Martha is developing a software program in C++ and has a question about how to implement a particular feature. She performs an online search and finds a link to a site written by a programmer with posts about tips and tricks in using the C++ language. What kind of resource did she find? a forum a blog a tutorial an online help site

Answers

Answer:

A blog

Explanation:

A blog is a regularly updated website or web page, typically one run by an individual or small group, that is organised by posts.

Answer:

Martha found a blog

On hearing my name, you might be reminded of long queues at metro stations or food courts. Just as a human body has a name for each of its parts, similarly I am an entity that identifies the part of the program like keywords, operators, identifiers, punctuation, etc

Answers

Answer: The correct answer is STACK

Explanation: Stack is an abstract data type that serves as a collection of elements, with two principal operations: push and pop. Push adds an element to the collection while pop removes the most recently added element that was not yet removed.

In computing is a data structure used to store a collection of objects.

You’ve been stuck in bumper-to-bumper traffic for nearly an hour on a hot summer day. The temperature warning light has just come on. How will you handle this situation? What safety precautions will you take?

Answers

Answer:

In a bumper-to-bumper traffic, when the engine starts overheating the situation can be handled by tapping the accelator which will revive the engine.

Explanation:

Overheating of engine can be due to many reasons. But one should know what to do when an engine overheats in a traffic. Bumper-to-bumper traffic is when the cars are so close in traffic that they touch each other. This usually happens when there's a traffic for a long time or on very busy lane. During summer times, it is important to keep checking the engine temperature to avoid any problem.

When one is stuck in bumper-to-bumper traffic with overheating engine, then there are some meausres that one can take. They are:

To put the car on park or neutral mode of driving and tap the accelator which will revive the engine. The heat can be disperse by rolling down the window and turn the heater up. It will disperse the heat.

The value 5 is stored in a signed (2's complement) integer. The bits are shifted 4 places to the right. What is the resultant value (in decimal)? 0.3125

Answers

Answer:

The resultant value is 0

Explanation:

Solution

Given that:

Now

The +5 representation in signed 2's complement integer: 00000101

Thus

When we right shift then, 4 rightmost bit (0101) will be dropped.

The number after 4-bit right shift: 00000000

Therefore the resultant value after 4-bit right shift is "0" in decimal.

str1=”Good” str2=”Evening” Does the concatenation of the above two strings give back a new string or does it concatenate on the string str1? How do you prove your point?

Answers

Answer:

It gives a new string

Explanation:

In programming; when two or more strings are concatenated by a concatenating operator, the result is always a new string.

From the question, we have that

str1 = "Good

str2 = "Evening"

Let's assume that + is the concatenating operator;

str1 + str2 = "Good" + "Evening" = "GoodEvening"

The result of concatenating str1 and str2 is a new string "GoodEvening" while str1 and str2 still maintain their original string value of "Good" and "Evening"

Other Questions
Which equation represents the line that passes through and left-parenthesis 4, StartFraction 7 Over 2 right-parenthesis.? How much charge must pass by a point in a wire in 1.5 s for the current inb the wire to be 2.0 A? If a business using the specific identification method of inventory has two items on hand at $300 each and purchases four items at $400 each, what is the value of inventory if two of the $300 items are sold Which of the following expressions is equal to -3X2-27? If the scores of 3 students in a test are 5,6 and 7. Find the standard deviation of their scores. Examine the expanded form. y y y y y y y y y y Which represents the expanded form in exponential form? 10y 10y y10 y10y Please answer this correctly A machine produces a part for the automotive industry. 4% of the parts produced were defective in the past, and we believe that the current percentage is not higher. What is the needed sample size for estimating the current percentage of defective parts with the 90% confidence and the 3% margin of error If you spin the spinner 11 times, what is the best prediction possible for the number of times it will land on pink? What is the energy of a photon with a frequency of 2.2 x 1016 Hz? Planck's constant is 6.63 x 10-34 Jos.O 1.5 x 10-178.8 x 10-17O 1.5 10-16O 8.8 10-16 A $20,000 loan is to be amortized for 10 years with quarterly payments of $699.44. If the interest rate is 7%, compounded quarterly, what is the unpaid balance immediately after the sixth payment What would be the reaction of God Dionysus when King Midas had the golden touch? how did nationalism lead to ww2? we nendndhdhebdbdbdd Factorise the following quadratic equations If we wanted to prove quadrilateral MNOP was a parallelogram, which method below would not work? 1.Doing four slope formulas to show both pairs of opposite sides are parallel.2.Doing two midpoint formulas to show the diagonals intersect at the same point.3.Doing two slope formulas and two distance formulas to prove the same pair of opposite sides is congruent and parallel.4.Doing two distance formulas to show that adjacent sides are not the same length Davon is picking out some movies to rent, and he has narrowed down his selections to 4 children's movies, 3 documentaries, 6 comedies, and 5 mysteries. How many different combinations of 9 movies can he rent if he wants all 6 comedies? According to the 3rd June plan _____________members of sindh had no right to vote. 1.Sindhi 2. Baluchi 3.European Sickle cell anemia is known to run in a family. A pedigree chart for this family is shown below. What best describes offspring 4? A female carrier of the disease A female having the disease A male carrier of the disease A male having the disease Cars enter a car wash at a mean rate of 4 cars per half an hour. What is the probability that, in any hour, exactly 5 cars will enter the car wash? Round your answer to four decimal places.