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
Savabuck University has installed standard pressure-operated flush valves on their water closets. When flushing, these valves de
Dvinal [7]

Answer:

Cost = $2527.2 per month.

Explanation:

Given that

Discharge ,Q = 130 L/min

 So

Q=0.13\ m^3/min

Cost =  $0.45 per cubic meter

1 month = 30 days

1 days = 24 hr = 24 x 60 min

1 month = 30 x 24 x 60 min

1 month = 43,200 min

Lets xm^3\ water\ waste\ in\ a\ month

x = 0.13 x 43,200

x=5616\ m^3

So the total cost = 5616 x 045 $

Cost = $2527.2 per month.

7 0
3 years ago
PLEASE QUICK!!!!!!!!!!! Overtime people have given names to groups of stars called_____
kirza4 [7]

Answer:

Constellations

Explanation:

Constellations describes a group of stars that appear to form a pattern or a picture. Example of common patterns are : Leo the Lion or Orion the Great Hunter. It is easy to recognize constellations and most people will tend to orient with these patterns. There are 88 patterns currently known.

6 0
3 years ago
When the 2.8-kg bob is given a horizontal speed of 1.5 m/s, it begins to rotate around the horizontal circular path A. The force
Rama09 [41]

Answer:

The speed is the same at 1.5 m/s while

The work done by the force F is 0.4335 J

Explanation:

Here we have angular acceleration α = v²/r

Force = ma = 2.8 × 1.5²/r₁

and ω₁ = v₁/r₁ = ω₂ = v₁/r₂

The distance moved by the force = 600 - 300 = 300 mm = 0.3 m

If the velocity is constant

The speed is 1.5 m/s while the work done is

2.8 × 1.5²1/(effective radius) ×0.3

r₁ = effective radius

2.8*9.81 = 2.8 × 1.5²/r₁

r₁ = 0.229

The work done by the force = 2.8 × 1.5²*1/r₁ *0.3 = 0.4335 J

4 0
3 years ago
Given a 8-bit ripple carry adder and the following four input scenarios: (i) A4 + 1F, (ii) AB+55, (iii) CA+34, (iv) 6D+29. a) Un
Bogdan [553]

Answer:

Answer for the question:

Given a 8-bit ripple carry adder and the following four input scenarios: (i) A4 + 1F, (ii) AB+55, (iii) CA+34, (iv) 6D+29. a) Under which input scenario can adder generate correct output with the minimal delay? b) Under which input scenario can adder generate correct output with the maximum delay?

Is given in the attachment.

Explanation:

5 0
3 years ago
Read 2 more answers
PYTHON:In this lab the completed program should print the numbers 0 through 10, along with their values multiplied by 2 and by 1
san4es73 [151]

Answer:

  1. for i in range(0,11):
  2.    print("Number: " + str(i) + " | Multiplied by 2: " + str(i * 2) + " | Multiplied by 10: " + str(i*10))

Explanation:

Firstly, create a for loop (Line 1). Since we intend to print 0 through 10, we need values 0 and 11 as parameters of range function. The range(0,11) will create a range of values 0 - 10 (11 not inclusive). The for loop will iterate through the range of values 0 - 11 one by one and then print the original value followed by value multiplied by 2 and also the value multiplied by 10 (Line 2).

8 0
3 years ago
Other questions:
  • Which of the following vehicles has no emissions?
    9·1 answer
  • Why is low voltage advantageous in arc welding?
    5·1 answer
  • The line voltage of a balanced three-phase transmission line is 4200 V rms. The transmission line has an impedance of 4 6 Z j l
    12·1 answer
  • The rigid beam is supported by a pin at C and an A992 steel guy wire AB of length 6 ft. If the wire has a diameter of 0.2 in., d
    14·1 answer
  • A square isothermal chip is of width w = 5 mm on a side and is mounted in a substrate such that its side and back surfaces are w
    7·1 answer
  • There are 22 gloves in a drawer: 5 pairs of red gloves, 4 pairs of yellow, and 2 pairs of green. You select the gloves in the da
    13·1 answer
  • Five batch jobs A through E arrive at a computer center in the order A to E at almost the same time. They have estimated running
    11·1 answer
  • There are three options for heating a particular house: a. Gas: $1.33/therm where 1 therm=105,500 kJ b. Electric Resistance: $0.
    9·1 answer
  • What is the uppermost part of the tree referred to as?
    13·2 answers
  • A life cycle assessment (LCA) determines the environmental impact at all stages of a product's life cycle, including production,
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!