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
For some metal alloy, a true stress of 345 MPa (50040 psi) produces a plastic true strain of 0.02. How much will a specimen of t
Strike441 [17]

Answer:

the elongation of the metal alloy is 21.998 mm

Explanation:

Given the data in the question;

K = σT/ (εT)ⁿ

given that metal alloy true stress σT = 345 Mpa, plastic true strain εT = 0.02,

strain-hardening exponent n = 0.22

we substitute

K = 345 / 0.02^{0.22

K = 815.8165 Mpa

next, we determine the true strain

(εT) = (σT/ K)^1/n

given that σT = 412 MPa

we substitute

(εT) = (412 / 815.8165 )^(1/0.22)

(εT) = 0.04481 mm

Now, we calculate the instantaneous length

l_i = l_0e^{ET

given that l_0 = 480 mm

we substitute

l_i =480mm × e^{0.04481

l_i =  501.998 mm

Now we find the elongation;

Elongation = l_i - l_0

we substitute

Elongation = 501.998 mm - 480 mm

Elongation = 21.998 mm

Therefore, the elongation of the metal alloy is 21.998 mm

6 0
3 years ago
A gas cylinder is connected to a manometer that contains water. The other end of the manometer is open to the atmosphere, which
horrorfan [7]

Answer: the absolute static pressure in the gas cylinder is 82.23596 kPa

Explanation:

Given that;

patm = 79 kPa, h = 13 in of H₂O,

A sketch of the problem is uploaded along this answer.

Now

pA = patm + 13 in of H₂O ( h × density × g )

pA= 79 + (13 × 0.0254 × 9.8 × 1000/1000)

pA = 82.23596 kPa

the absolute static pressure in the gas cylinder is 82.23596 kPa

4 0
4 years ago
Water is flowing into the top of an open cylindrical tank (which has a diameter D) at a volume flow rate of Qi and the water flo
deff fn [24]

Answer:

Z = 3 + 0.23t

The water level is rising

Explanation:

Please see attachment for the equation

8 0
3 years ago
Read 2 more answers
In what flight condition is torque effect the greatest in a single-engine airplane?
Tema [17]

Answer:

Low airspeed, high power, high angle of attack

7 0
2 years ago
The cars of a roller-coaster ride have a speed of 30 km / h as they pass over the top of the circular track. Neglect any frictio
PtichkaEL [24]

Answer:

Explanation:

30 we know that radius is 18 and the circumference is 36pi and the time to go around is is 36pi/30=1.2pi≈3.76991118

7 0
3 years ago
Other questions:
  • A stream of vinyl chloride monomer (VCM, H2C=CHCl, molecular weight = 62.5lb/lb-mol) in air is being produced from a process to
    7·1 answer
  • _____________ are designed to make it easier for employees to get health and safety information about chemicals.
    9·2 answers
  • 1. There are two categories (shapes) for the Virginia driver's license. The ________________________ shape license represents th
    9·1 answer
  • Determine whether each of the following statements is true, false, or uncertain. Explain your answers. A decision maker seldom k
    14·1 answer
  • Does it jiggle? Does it really jiggle jiggle?
    9·2 answers
  • How many points do you need to define for the rectangle
    14·1 answer
  • 4 ) Effective spring mass supposed to be............ from the
    14·1 answer
  • “We have to redo the deck we built last week,” Bennett tells his coworkers. “I just tested it, and it doesn’t hold the minimum w
    10·1 answer
  • Explain why slopping roofs are used in areas with heavy rain or snow fall
    13·1 answer
  • In a medical lab, Sandrine is working to isolate one element from a sample of liquid material. She uses a centrifuge, a machine
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!