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
Vitek1552 [10]
3 years ago
8

Add each element in origList with the corresponding value in offsetAmount. Print each sum followed by a space. Ex: If origList =

{4, 5, 10, 12} and offsetAmount = {2, 4, 7, 3}, print:

Engineering
1 answer:
alexdok [17]3 years ago
4 0

Answer:

import java.util.Scanner;

public class SumVectorElements

{

public static void main(String[] args)

{

final int NUM_VALS = 4;

int[] origList = new int[NUM_VALS];

int[] offsetAmount = new int[NUM_VALS];

int i = 0;

origList[0] = 40;

origList[1] = 50;

origList[2] = 60;

origList[3] = 70;

offsetAmount[0] = 5;

offsetAmount[1] = 7;

offsetAmount[2] = 3;

offsetAmount[3] = 0;

/* Your solution goes here */

// Print the Sum of each element in the origList

// with the corresponding value in the

// offsetAmount.

for (i = 0; i < NUM_VALS; i++)

{

System.out.print((origList[i] + offsetAmount[i])+" ");

}

System.out.println("");

return;

}

}

Explanation: see attachment below

You might be interested in
For some metal alloy, the following engineering stresses produce the corresponding engineering plastic strains prior to necking.
kirza4 [7]

Answer:

203.0160

Explanation:

Because you add then subtract then multiply buy 7 the subtract then divide then you add that to the other numbers you got than boom

7 0
2 years ago
What are the rights of people bicycling, under Illinois state law? *
zhuklara [117]

Answer:

○ People biking have the same right to be on the road as motorists, except for roads (such as expressways) where signs prohibit bikes​

Explanation:

MRK ME BRAINLIEST PLZZZZZZZZZZZZZ

8 0
3 years ago
Will give brainly
Ksivusya [100]

Answer:

Here you go!!

Explanation:

If I were to write a book I would write my steps down as in figuring out what I what to talk about. Have an Introduction- Using an introduction is needed because you need to Describe your main idea, or what the essay is about, in one sentence. ... Develop a thesis statement, or what you want to say about the main idea. ... List three points or arguments that support your thesis in order of importance (one sentence for each). I would also use a Rising action- This is needed because, To construct the plot, nearly any story can be said to use increasing action. It serves the following purposes: It generates suspense and enhances the sense of urgency around the story's central conflict or problem. Then I would do a Climax- The object of a climax is not to provide the most possible conflict or action. It's also not just about producing the character's greatest reversal of fortunes. Too often we mistake the fortunes of our character with the story's arc, and although fortune is involved, it's not our story arc's key criterion. After that, I would just add finish touches and finish it off before it needs to be shipped off to make copies.

8 0
3 years ago
One problem with organic equations is that we tend to focus on what is happening to onemolecule at a time, we forget that there
stellarik [79]

Answer:

1 2 200 000 000 000 000 000 000 (20 zeros) molecules

Explanation:

Molar mass of 1-butanol = 74.121 g/mol

number of moles = mass given / molar mass

where mass given = 1.5 g

number of mole = 1.5 g / (74.121g/mol ) = 0.0202 moles

number of moles = number of molecules / Avogadro's constant

where Avogadro's = 6.022 × 10²³ mol⁻¹

number of moles = 6.022 × 10²³ × 0.0202 moles = 1 2 200 000 000 000 000 000 000 (20 zeros) molecules

3 0
3 years ago
An Ideal gas is being heated in a circular duct as while flowing over an electric heater of 130 kW. The diameter of duct is 500
Assoli18 [71]

Answer: The exit temperature of the gas in deg C is 32^{o}C.

Explanation:

The given data is as follows.

C_{p} = 1000 J/kg K,   R = 500 J/kg K = 0.5 kJ/kg K (as 1 kJ = 1000 J)

P_{1} = 100 kPa,     V_{1} = 15 m^{3}/s

T_{1} = 27^{o}C = (27 + 273) K = 300 K

We know that for an ideal gas the mass flow rate will be calculated as follows.

     P_{1}V_{1} = mRT_{1}

or,         m = \frac{P_{1}V_{1}}{RT_{1}}

                = \frac{100 \times 15}{0.5 \times 300}  

                = 10 kg/s

Now, according to the steady flow energy equation:

mh_{1} + Q = mh_{2} + W

h_{1} + \frac{Q}{m} = h_{2} + \frac{W}{m}

C_{p}T_{1} - \frac{80}{10} = C_{p}T_{2} - \frac{130}{10}

(T_{2} - T_{1})C_{p} = \frac{130 - 80}{10}

(T_{2} - T_{1}) = 5 K

T_{2} = 5 K + 300 K

T_{2} = 305 K

           = (305 K - 273 K)

           = 32^{o}C

Therefore, we can conclude that the exit temperature of the gas in deg C is 32^{o}C.

8 0
4 years ago
Other questions:
  • A conducting spherical shell having an inner radius of 3 cm and outer radius of 4.3 cm carries a net charge of 9.6 μC. A conduct
    15·1 answer
  • The device whose operation closely matches the way the clamp-on ammeter works is
    8·1 answer
  • An overhead 25m-long, uninsulated industrial steam pipe of 100-mm diameter, is routed through a building whose walls and air are
    5·1 answer
  • Effluents from metal-finishing plants have the potential of discharging undesirable quantities of metals, such as cadmium, nicke
    11·1 answer
  • A horizontal curve on a two lane highway (one lane per direction) has its PC at station 123+70 and its PI at station 130+90. The
    6·1 answer
  • 21.13 The index of refraction of corundum (Al2O3) is anisotropic. Suppose that visible light is passing from one grain to anothe
    5·1 answer
  • The author claims that engineers should always have the final say and last word when it comes to setting safety standards. Selec
    5·2 answers
  • What is relation of crankshaft and camshaft
    5·2 answers
  • Write a program that computes the square footage of a house given the dimensions of each room.Have the program ask the user how
    12·1 answer
  • What would be the structure for the body points for a persuasive presentation?.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!