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
Does anybody know how to take a screenshot on a HP pavilion computer?
Setler79 [48]

Answer:

I do i do it everyday

Explanation:

Press windows and prt sc at the same time

6 0
3 years ago
The regulated voltage of an alternator is stated as 13.6 to 14.6 volts at 3000 rpm with the
lions [1.4K]

Answer:

  d)  1 volt​

Explanation:

The allowable range is 1 volt​. The allowed tolerance (deviation from nominal) depends on what the nominal voltage is.

5 0
4 years ago
Compute the theoretical density of ZnS given that the Zn-S distance and bond angle are 0.234 nm and 109.5o, respectively. The at
andriy [413]

Answer: the theoretical density is 4.1109 g/cm³

Explanation:  

first the image of one set of ZnS bonding in the crystal structure, we calculate the value of angle θ

θ + ∅ + 90° = 180°

θ = 90° - ∅

θ = 90° - ( 109.5° / 2 )

θ = 35.25°

next we calculate the value of x from the geometry

given that;  distance angle d = 0.234

x = dsinθ

= 0.234 × sin35.25°)

= 0.135 nm = 0.135 × 10⁻⁷ cm

next we calculate the length of the unit cell

a = 4x

a = 4(0.135)

a = 0.54 nm = 0.54 × 10⁻⁷ cm

next we calculate number of formula units

n' = (no of corner atoms in unit ell × contribution of each corner atom in unit cell) + ( no of face center atom in a unit cell × contribution of each face center atom in a unit cell)

n' = 8 × 1/8) + ( 6 × 1/2)

= 1 + 3

= 4

next we calculate the theoretical density using  this equation

P = [n'∑(Ac + AA)] / [Vc.NA]

= [n'∑(Ac + AA)] / [(a)³NA]

where the ∑Ac is sum of atomic weights of all cations in the formula unit( 65.41 g/mol)

∑AA is the sum of weights of all anions in the formula unit( 32.06 g/mol)

Na is the Avogadro’s number( 6.023 × 10²³ units/mole)

so we substitute

P = [4( 65.41 + 32.06)] / [ ( 0.54 × 10⁻⁷ )³ × (6.023 × 10²³)]

= 389.88 / 94.84

= 4.1109 g/cm³

therefore the theoretical density is 4.1109 g/cm³

5 0
3 years ago
MITM can present in two forms: eavesdropping and manipulation. Discuss the process involved when an attacker is eavesdropping an
Nikitich [7]

Answer / Explanation:

Eavesdropping attack is also sometimes refereed to as sniffing attack. It is simply the process by which an attacker or hacker tries to penetrate very suddenly into an unaware individuals network or server with the intention to steal information transmitted over the network or server through that computer.  

To prevent such attack, there are several mean which include installing network monitoring software to check who else is connected to the network but the most common method of preventing such attack is to encrypt the Hypertext Transfer Protocol (http) and the way to do this is by securing it with a sort of security key.

On installing the security key, the network becomes encrypted and secured such that whatever network transmitted over the network becomes encrypted and unable to read. The protocol then converts to (https).

5 0
3 years ago
A thick-walled tube of stainless steel having a k = 21.63 W/m∙K with dimensions of 0.0254 m ID and 0.0508 m OD is covered with 0
Aneli [31]

Answer:

Q=339.5W

T2=805.3K

Explanation:

Hi!

To solve this problem follow the steps below, the procedure is attached in an image

1. Draw the complete outline of the problem.

2.to find the heat Raise the heat transfer equation for cylinders from the inside of the metal tube, to the outside of the insulation.

3. Once the heat is found, Pose the heat transfer equation for cylinders from the inner part of the metal tube to the outside of the metal tube and solve to find the temperature

4 0
4 years ago
Other questions:
  • Define what a glass transition is and what happens to a polymer because of it
    13·1 answer
  • Tech A says that coolant circulates through some intake manifolds to help warm them up. Tech B says that some intake manifolds u
    13·1 answer
  • Which statement describes the relay between minerals and rocks ?
    15·1 answer
  • Chandler is working on a school editing project. Because he copied 10 GB of raw footage to his computer, its memory is running l
    11·1 answer
  • Similarity of surface<br>and ground<br>waler​
    9·1 answer
  • Three bars each made of different materials are connected together and placed between two walls when the temperature is 12 oC. D
    9·1 answer
  • What does it mean to say that PEER is a data-driven, consumer-centric, and comprehensive system?
    8·2 answers
  • 2. (Problem 4.60 on main book, diameters different) Water flows steadily through a fire hose and nozzle. The hose is 35 mm diame
    8·1 answer
  • 2x²-6x+10/x-2 x=2<br><br><br>plsssss<br><br><br><br>​
    9·1 answer
  • In a wheatstone bridge three out of four resistors have of 1K ohm each ,and the fourth resistor equals 1010 ohm. If the battery
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!