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
Y_Kistochka [10]
3 years ago
5

I gave 15 min to finish this java program

Engineering
1 answer:
lisov135 [29]3 years ago
4 0

Answer:

class TriangleNumbers

{

public static void main (String[] args)

{

 for (int number = 1; number <= 10; ++number) {

  int sum = 1;

  System.out.print("1");

  for (int summed = 2; summed <= number; ++summed) {

   sum += summed;

   System.out.print(" + " + Integer.toString(summed));

  }

  System.out.print(" = " + Integer.toString(sum) + '\n');

 }

}

}

Explanation:

We need to run the code for each of the 10 lines. Each time we sum  numbers from 1 to n. We start with 1, then add numbers from 2 to n (and print the operation). At the end, we always print the equals sign, the sum and a newline character.

You might be interested in
A cylindrical specimen of a titanium alloy having an elastic modulus of 107 GPa (15.5 × 106 psi) and an original diameter of 3.7
Keith_Richards [23]

Answer:

the maximum length of specimen before deformation is found to be 235.6 mm

Explanation:

First, we need to find the stress on the cylinder.

Stress = σ = P/A

where,

P = Load = 2000 N

A = Cross-sectional area = πd²/4 = π(0.0037 m)²/4

A = 1.0752 x 10^-5 m²

σ = 2000 N/1.0752 x 10^-5 m²

σ = 186 MPa

Now, we find the strain (∈):

Elastic Modulus = Stress / Strain

E = σ / ∈

∈ = σ / E

∈ = 186 x 10^6 Pa/107 x 10^9 Pa

∈ = 1.74 x 10^-3 mm/mm

Now, we find the original length.

∈ = Elongation/Original Length

Original Length = Elongation/∈

Original Length = 0.41 mm/1.74 x 10^-3

<u>Original Length = 235.6 mm</u>

5 0
3 years ago
Miller Indices:
svetlana [45]

Answer:

A) The sketches for the required planes were drawn in the first attachment [1 2 1] and the second attachment [1 2 -4].

B) The closest distance between planes are d₁₂₁=a/√6 and d₁₂₋₄=a/√21 with  lattice constant a.

C) Five posible directions that electrons can move on the surface of a [1 0 0] silicon crystal are: |0 0 1|, |0 1 3|, |0 1 1|, |0 3 1| and |0 0 1|.

Compleated question:

1. Miller Indices:

a. Sketch (on separate plots) the (121) and (12-4) planes for a face centered cubic crystal structure.

b. What are the closest distances between planes (called d₁₂₁ and d₁₂₋₄)?

c. List five possible directions (using the Miller Indices) the electron can move on the surface of a (100) silicon crystal.

Explanation:

A)To draw a plane in a face centered cubic lattice, you have to follow these instructions:

1- the cube has 3 main directions called "a", "b" and "c" (as shown in the first attachment) and the planes has 3 main coeficients shown as [l m n]

2- The coordinates of that plane are written as: π:[1/a₀ 1/b₀ 1/c₀] (if one of the coordinates is 0, for example [1 1 0], c₀ is ∞, therefore that plane never cross the direction c).

3- Identify the points a₀, b₀, and c₀ at the plane that crosses this main directions and point them in the cubic cell.

4- Join the points.

<u>In this case, for [1 2 1]:</u>

l=1=1/a_0 \rightarrow a_0=1

m=2=2/b_0 \rightarrow b_0=0.5

n=1=1/c_0 \rightarrow c_0=1

<u>for </u>[1 2 \overline{4}]<u>:</u>

l=1=1/a_0 \rightarrow a_0=1

m=2=2/b_0 \rightarrow b_0=0.5

n=\overline{4}=-4/c_0 \rightarrow c_0=-0.25

B) The closest distance between planes with the same Miller indices can be calculated as:

With \pi:[l m n] ,the distance is d_{lmn}= \displaystyle \frac{a}{\sqrt{l^2+m^2+n^2}} with lattice constant a.

<u>In this case, for [1 2 1]:</u>

<u />d_{121}= \displaystyle \frac{a}{\sqrt{1^2+2^2+1^2}}=\frac{a}{\sqrt{6}}=0.41a<u />

<u>for </u>[1 2 \overline{4}]<u>:</u>

d_{12\overline{4}}= \displaystyle \frac{a}{\sqrt{1^2+2^2+(-4)^2}}=\frac{a}{\sqrt{21}}=0.22a

C) The possible directions that electrons can move on a surface of a crystallographic plane are the directions contain in that plane that point in the direction between nuclei. In a silicon crystal, an fcc structure, in the plane [1 0 0], we can point in the directions between the nuclei in the vertex (0 0 0) and e nuclei in each other vertex. Also, we can point in the direction between the nuclei in the vertex (0 0 0) and e nuclei in the center of the face of the adjacent crystals above and sideways. Therefore:

dir₁=|0 0 1|

dir₂=|0 0.5 1.5|≡|0 1 3|

dir₃=|0 1 1|

dir₄=|0 1.5 0.5|≡|0 3 1|

dir₅=|0 0 1|

5 0
3 years ago
How does emotion affect a persons driving
Elodia [21]

Answer:

if ur mad you may drive faster if ur sad u may drive slower due to the amount of adrenaline and dopamine levels in your body in that given moment

Explanation:

4 0
3 years ago
During his military campaign in what is now Germany, Julius Caesar lead his army of 40,000 soldiers to the western bank of the R
CaHeK987 [17]

Answer:

identifying a problem

Explanation:

its right

5 0
3 years ago
What kinds of problems or projects would a civil engineer work on?
lisov135 [29]

Answer:

simple projects bovonhztisgx

8 0
3 years ago
Other questions:
  • A ring-shaped seal, made from a viscoelastic material, is used to seal a joint between two rigid pipes. When incorporated in the
    5·1 answer
  • A strain gauge with a 5 mm gauge length gives a displacement reading of 1.25 um. Calculate the stress value given by this displa
    15·1 answer
  • A refrigerator has a cooling load of 50 kW. It has a COP of 2. It is run by a heat engine which consumes 50 kW of heat to supply
    12·1 answer
  • Output all combinations of character variables a, b, and c. If a = 'x', b = 'y', and c = 'z', then the output is: xyz xzy yxz yz
    14·1 answer
  • What are three automotive safety systems
    14·1 answer
  • ¿Cómo nos podría ayudar una hoja de cálculo en nuestro estudio?
    11·1 answer
  • Which power transfer system is most suitable for the food processing industry?
    13·1 answer
  • What does it mean to say that PEER is a data-driven, consumer-centric, and comprehensive system?
    8·2 answers
  • What flight patterns do groups of birds utilize and why?
    10·1 answer
  • What type of social engineering targets particular?.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!