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
python Given num_rows and num_cols, print a list of all seats in a theater. Rows are numbered, columns lettered, as in 1A or 3E.
MissTica

Explanation:

First of all get the input from the user, number of rows and number of columns where rows represents seat digit number and column represents the seat letter

rows is initialized to 1 to ensure that row starts at 1 or you can remove it then seat number will start from 0.

The first loop is used for digits starting from 1 to number of rows

The second loop is used for letters starting from 1 to number of columns

since rows and cols are not of the same type that's why we are converting the int type to string type

print(str(rows)+cols) counter will keep updating the columns A, B, C.....

rows= rows + 1 counter will keep updating the rows 1, 2, 3....

Code:

Please refer to the attached image.

Output:

Please enter the number of rows: 2

Please enter the number of columns: 3

1A

1B

1C

2A

2B

2C

3 0
3 years ago
the AADT for a section of suburban freeway is 150000 veh/day. Assuming this is an urban radial facility, what range of direction
igomit [66]

Answer:

design hour volumes will be 4000 to 6000

Explanation:

given data

AADT  = 150000 veh/day

solution

we get here design hour volumes that is express as

design hour volumes  = AADT × k × D    ..............1

here k is factor and its  range is 8 to 12 % for urban

and D is directional distribution i.e traffic equal divided by the direction

so here design hour volumes will be 4000 to 6000

7 0
3 years ago
Which of the following is NOT an ASE certification? Select one:
stiks02 [169]

The option that is not an ASE certification is . A/C and Refrigerants handling certification (609).

<h3>What is ASE certification?</h3>

The term ASE is known to be a body that tends to promotes excellence in regards to vehicle repair, service as well as parts distribution.

Note that in the world today more than a quarter of  million of people are known to possess ASE certifications.

Since ASE Certified professionals work in in all areas of the transportation industry. one can say that The option that is not an ASE certification is. A/C and Refrigerants handling certification (609).

Learn more about ASE certification from

brainly.com/question/5533417

#SPJ1

8 0
2 years ago
A cylindrical insulation for a steam pipe has an inside radius rt = 6 cm, outside radius r0 = 8 cm, and a thermal conductivity k
goldfiish [28.3K]

Answer:

heat loss per 1-m length of this insulation is 4368.145 W

Explanation:

given data

inside radius r1 = 6 cm

outside radius r2 = 8 cm

thermal conductivity k = 0.5 W/m°C

inside temperature t1 = 430°C

outside temperature t2 = 30°C

to find out

Determine the heat loss per 1-m length of this insulation

solution

we know thermal resistance formula for cylinder that is express as

Rth = \frac{ln\frac{r2}{r1}}{2 \pi *k * L}   .................1

here r1 is inside radius and r2 is outside radius L is length and k is thermal conductivity

so

heat loss is change in temperature divide thermal resistance

Q = \frac{t1- t2}{\frac{ln\frac{r2}{r1}}{2 \pi *k * L}}

Q = \frac{(430-30)*(2 \pi * 0.5 * 1}{ln\frac{8}{6} }

Q = 4368.145 W

so heat loss per 1-m length of this insulation is 4368.145 W

4 0
3 years ago
Along with refining craft skills another way to increase the odds for career advancement is to
Xelga [282]

The acquisition of additional certifications with a personal refined craft skills can increase the odds for career advancemen.

<h3>What is a career advancement?</h3>

An advancement is achieved in a career if a professional use their skill sets, determination or perserverance to achieve new career height.

An example of a career advancement is when an employee progresses from entry-level position to management and transits from an occupation to another.

Therefore, the Option A is correct.

Read more about career advancement

<em>brainly.com/question/7053706</em>

7 0
1 year ago
Other questions:
  • The internal loadings at a critical section along the steel drive shaft of a ship are calculated to be a torque of 2300 lb⋅ft, a
    8·1 answer
  • A two-stroke CI. engine delivers 5000 kWwhile using 1000 kW to overcome friction losses. It consumes 2300 kg of fuel per hour at
    14·1 answer
  • Analyze the following ideal transistor circuit. Can use general rule of thumbs for analyzing transistors b-base, c- collector, a
    9·2 answers
  • (a) Consider a germanium semiconductor at T 300 K. Calculate the thermal equilibrium electron and hole concentrations for (i) Nd
    7·1 answer
  • Only an outer panel is being replaced. Technician A says that removing the spot welds by drilling through both panels allows the
    11·1 answer
  • A flow of 12 m/s passes through a 6 m wide, 2 m deep rectangular channel with a bed slope of 0. 001. If the mean velocity of flo
    12·1 answer
  • What is the output of the following program fragment. Choose appropriate data-types of variables to match output.
    10·1 answer
  • Technician A says power steering pumps can be engine driven. Technician B says power steering
    9·1 answer
  • If a condenser has high head pressure and a higher than normal temperature, a technician could ____.
    7·1 answer
  • Which type of system is being researched to deliver power to several motors to drive multiple systems in vehicles?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!