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 2-bit positive-edge triggered register has data inputs d1, d0, clock input clk, and outputs q1, q0. Data inputs d1d0 are 01 an
ale4655 [162]

Answer:

  q1q1 ⇒ 01

Explanation:

The outputs of a positive edge triggered register will match the inputs after a rising clock edge.

  q1q1 ⇒ 01 . . . . matching d1d0 = 01

7 0
2 years ago
How do you make a robotic dog
fredd [130]
In order to create a robotic dog, you are needing the necessary parts to create Goddard from Jimmy nutreon boy genius
7 0
3 years ago
Read 2 more answers
The end of a large tubular workpart is to be faced on a NC vertical boring mill. The part has an outside diameter of 38.0 in and
nata0808 [166]

Answer:

(a) the cutting time to complete the facing operation = 11.667mins

b) the cutting speeds and metal removal rates at the beginning= 12.89in³/min and end of the cut. = 8.143in³/min

Explanation:

check attached files below for answer.

5 0
3 years ago
Which regulations are related to guard rail height and dimensions and uniformity of stairs?
galina1969 [7]

Answer:

C.

structural safety

Explanation:

Guards protecting floor surfaces must be 36 inches in height, while guards for stairs must be 34 inches in height measured vertically from the tread nosing. A guard may also serve as the required handrail (34 to 38 inches high) provided the top rail meets the requirements for grip size.

4 0
3 years ago
Read 2 more answers
Please help me bro come on
melomori [17]
Answer:

12

Explanation:

5 • 3 = 15
3 • 3 = 9
4 • 3 = 12
6 0
3 years ago
Read 2 more answers
Other questions:
  • If 20 kg of iron, initially at 12 °C, is added to 30 kg of water, initially at 90 °C, what would be the final temperature of the
    6·1 answer
  • A soil has the following Green-Ampt parameters Effective porosity 0.400 Initial volumetric moisture content-15% Hydraulic Conduc
    6·1 answer
  • If you were choosing between two strain gauges, one which has a single resistor in a bridge that varies and one that has two res
    11·1 answer
  • The amount of time an activity can be delayed and yet not delay the project is termed:_________
    14·1 answer
  • Air at 300 K and 100 kPa steadily flows into a hair dryer having electrical work input of 1500 W. Because of the size of the air
    6·2 answers
  • A fair die is thrown, What is the probability gained if you are told that 4 will
    12·1 answer
  • 7–2 Cooling of a Hot Block by Forced Air at High
    6·1 answer
  • Find the remaining trigonometric functions of 0 if
    10·1 answer
  • A tool used to put a concave edge on a plane iron is
    6·1 answer
  • As you push a toggle bolt into a wall, the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!