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
A cylindrical specimen of some metal alloy having an elastic modulus of 106 GPa and an original cross-sectional diameter of 3.9
kiruha [24]

Answer:

L= 312.75 mm

Explanation:

given data

elastic modulus E = 106 GPa

cross-sectional diameter d = 3.9 mm

tensile load F = 1660 N

maximum allowable elongation ΔL = 0.41 mm

to find out

maximum length of the specimen before deformation

solution

we will apply here allowable elongation equation that is express as

ΔL =     \dfrac{FL}{AE}     ....................1

put here value and we get L

L   =    \dfrac{0.41\times 10^{-3}\times \dfrac{\pi}{4}\times (3.9\times 10^{-3})^2\times 106\times 10^9}{1660}

solve it we get

L = 0.312752 m

L= 312.75 mm

8 0
4 years ago
D. projectile
Colt1911 [192]
Answer: parabola

Explanation:

•Parabolic Trajectory:

In conclusion, projectiles travel with a parabolic trajectory due to the fact that the downward force of gravity accelerates them downward from their otherwise straight-line, gravity-free trajectory.
5 0
3 years ago
The input power for a thermostat is wired to the
masya89 [10]

Answer:

A. R

Explanation:

There are basically two wires that supply input power to the thermostat namely the C wire which is the common wire and the R wire .The G wire simply completes the input power circuit from the R-leg of the power supply.On the another hand the Y wire also completes the circuit  from the compressor fan contactor to the R-leg of the power supply . While the W wire completes the path to the heater contactor coil.

6 0
4 years ago
Name the seven physical qualities for which standards have been developed.
SIZIF [17.4K]

Answer:

HUMAN DEVELOPMENT

MOTOR BEHAVIOR

EXERCISE SCIENCE

MEASUREMENT AND EVALUATION

HISTORY AND PHILOSOPHY

UNIQUE ATTRIBUTES OF LEARNERS

CURRICULUM THEORY AND DEVELOPMENT

Explanation:

6 0
4 years ago
Need help with these 3 questions pls help
Anton [14]

Answer:

I think 5 is passion and 6 is true I think and 7 is time management I'm pretty sure

3 0
3 years ago
Other questions:
  • (a) If you needed to fit an acrylic base in a box that is 250mm x 250mm square, and the kerf on the laser cutter is 0.3mm, what
    13·1 answer
  • Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per li
    15·1 answer
  • A 11.5 nC charge is at x = 0cm and a -1.2 nC charge is at x = 3 cm ..At what position or positions on the x-axis is the electric
    5·1 answer
  • During engine operation, what force causes a cylinder head to pull tighter against the head gasket?
    11·1 answer
  • Ben is an aeronautical engineer who helps build rockets. What talent might help ben in his career?
    14·1 answer
  • When Hailey participated in a tree plantation drive, she wore her most comfortable loungewear. However, the same attire was not
    11·1 answer
  • Why might there be multiple foremen on one work site?
    11·1 answer
  • Limestone scrubbing is used to remove SO2 in a flue gas desulfurization (FGD) system. Relevant reactions are given below. A lime
    8·1 answer
  • Hi Pls answer
    14·2 answers
  • Three natural materials that were used by early man as roof covering​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!