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
How might an operations manager alter operations to meet customer demand? Name at least two ways.
Citrus2011 [14]
One way is manager changes itself and the other one is the same thing i think.
4 0
3 years ago
Is the COP of a heat pump always larger than 1?
Liono4ka [1.6K]

Answer:

Yes

Explanation:

Yes it is true that COP of heat pump always greater than 1.But the COP of refrigeration can be greater or less than 1.

We know that

COP of heat pump=  1 + COP of refrigeration

It is clear that COP can not be negative .So from the above expression we can say that COP of heat pump is always greater than one.  

3 0
2 years ago
Two thousand pieces will flow through from the first machine A to the final machine F based on the given sequence of operations.
Vlad1618 [11]

The total number of trips that the vehicle has to make based on the given sequence of operation is 120 trips.

<em>"Your</em><em> </em><em>question is not complete, it seems to be missing the following information;"</em>

The sequence of operation is A - E - D - C - B - A - F

The given parameters;

  • <em>number of pieces that will flow from the first machine A to machine F, = 2,000 pieces</em>
  • <em>initial unit load specified in the first machine, L₁ = 50</em>
  • <em>final unit load, L₂ = 100 </em>
  • <em>the capacity of the vehicle = 1 unit load</em>

<em />

The given sequence of operation of the vehicle;

A - E - D - C - B - A - F

<em>the vehicle makes </em><em>6 trips</em><em> for </em><em>100</em><em> unit </em><em>loads</em>

The total number of trips that the vehicle has to make, in order to transport the 2000 pieces of the load given, is calculated as follows.

100 unit loads ----------------- 6 trips

2000 unit loads --------------- ?

= \frac{2000}{100} \times 6\\\\= 120 \ trips

Thus, the total number of trips that the vehicle has to make based on the given sequence of operation is 120 trips.

Learn more here:brainly.com/question/21468592

6 0
2 years ago
You can help build a safe work environment by using your knowledge of violence prevention strategies to spot what?
Ostrovityanka [42]

Answer:

warning signs

Explanation:

give directions on your surroundings

4 0
2 years ago
How does a catapult incorporate technology?
storchak [24]
I’m sure the answer is correct and it is below
“ A catapult works because energy can be converted from one type to another and transferred from one object to another. ... This energy is stored in the launching device as potential, or stored, energy. The catapult you are about to make uses elastic potential energy stored in a wooden stick as you bend it.”
6 0
3 years ago
Other questions:
  • A brittle intermetallics specimen is tested with a bending test. The specimen's width 0.45 in and thickness 0.20 in. The length
    5·1 answer
  • Two AAA-size lithium batteries are connected in series in a flashlight. Each battery has 3.5 volt and 4- Amp-hour capacity. If t
    8·1 answer
  • Find the pressure exerted by the water bed on the floor when the bed rests in its normal position. Assume the entire lower surfa
    12·1 answer
  • Pennfoster Trades Safety test. Would appreciate the help. Thank you in advance. Check the screenshots below for the questions I'
    8·1 answer
  • Unitate de masura in SI pt F​
    11·1 answer
  • Which design activity is part of the design for manufacturability (DFM) methodology?
    10·1 answer
  • Saferty precautions of drill press​
    8·2 answers
  • A 9 -slug mass hangs by a rope from the ceiling. Using the standard value of gravitational acceleration g = 32.2 fts 2, what is
    12·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
  • What is shown in the above figure
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!