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
Saturated steam coming off the turbine of a steam power plant at 40°C condenses on the outside of a 3-cm-outer-diameter, 35-m-lo
Marina86 [1]

Answer:

93.57 KJ/s

Explanation:

Rate of heat transfer from the steam to the cooling water = mass rate  ×  Heat of vaporization of water at 40 °C

H vaporization of water 40 °C  at saturation pressure = 2406.0 kJ / Kg

rate of heat transfer = 2406.0 kJ / Kg × 140 Kg / ( 60 × 60s) = 93.57 KJ/s

5 0
3 years ago
A 5-mm-thick stainless steel strip (k = 21 W/m•K, rho = 8000 kg/m3, and cp = 570 J/kg•K) is being heat treated as it moves throu
Drupady [299]

Answer:

The temperature of the strip as it exits the furnace is 819.15 °C

Explanation:

The characteristic length of the strip is given by;

L_c = \frac{V}{A} = \frac{LA}{2A} = \frac{5*10^{-3}}{2} = 0.0025 \ m

The Biot number is given as;

B_i = \frac{h L_c}{k}\\\\B_i = \frac{80*0.0025}{21} \\\\B_i = 0.00952

B_i < 0.1,  thus apply lumped system approximation to determine the constant time for the process;

\tau = \frac{\rho C_p V}{hA_s} = \frac{\rho C_p L_c}{h}\\\\\tau = \frac{8000* 570* 0.0025}{80}\\\\\tau = 142.5 s

The time for the heating process is given as;

t = \frac{d}{V} \\\\t = \frac{3 \ m}{0.01 \ m/s} = 300 s

Apply the lumped system approximation relation to determine the temperature of the strip as it exits the furnace;

T(t) = T_{ \infty} + (T_i -T_{\infty})e^{-t/ \tau}\\\\T(t) = 930 + (20 -930)e^{-300/ 142.5}\\\\T(t) = 930 + (-110.85)\\\\T_{(t)} = 819.15 \ ^0 C

Therefore, the temperature of the strip as it exits the furnace is 819.15 °C

5 0
3 years ago
Which of the following is not a function of the cooling system
Pie

Answer:

hola soy dora

Explanation:

5 0
2 years ago
For a body moving with simple harmonic motion state the equations to represent: i) Velocity ii) Acceleration iii) Periodic Time
max2010maxim [7]

Answer with Explanation:

The general equation of simple harmonic motion is

x(t)=Asin(\omega t+\phi)

where,

A is the amplitude of motion

\omega is the angular frequency of the motion

\phi is known as initial phase

part 1)

Now by definition of velocity we have

v=\frac{dx}{dt}\\\\\therefore v(t)=\frac{d}{dt}(Asin(\omega t+\phi )\\\\v(t)=A\omega cos(\omega t+\phi )

part 2)

Now by definition of acceleration we have

a=\frac{dv}{dt}\\\\\therefore a(t)=\frac{d}{dt}(A\omega cos(\omega t+\phi )\\\\a(t)=-A\omega ^{2}sin(\omega t+\phi )

part 3)

The angular frequency is related to Time period 'T' asT =\frac{2\pi }{\omega }

where

\omega is the angular frequency of the motion of the particle.

Part 4) The acceleration and velocities are plotted below

since the maximum value that the sin(x) and cos(x) can achieve in their respective domains equals 1 thus the maximum value of acceleration and velocity is A\omega ^{2} and A\omega respectively.

4 0
3 years ago
Primary Creep: slope (creep rate) decreases with time
Igoryamba

Answer:

true

Explanation:

Creep is known as the time dependent deformation of structure due to constant load acting on the body.

Creep is generally seen at high temperature.

Due to creep the length of the structure increases which is not fit for serviceability purpose.

When time passes structure gain strength as the structure strength increases with time so creep tends to decrease.

When we talk about Creep rate for new structure the creep will be more than the old structure i.e. the creep rate decreases with time.

5 0
3 years ago
Other questions:
  • Explain why different types of equipment are required for proper conditioning of air
    7·1 answer
  • A vehicle is moving at a velocity, v, given by v =12t - 3t2 ms-1. Use
    7·1 answer
  • // This program accepts data about 100 books and// determines a price for each.// The price is 10 cents per page for the// first
    12·1 answer
  • In an experiment, the local heat transfer over a flat plate were correlated in the form of local Nusselt number as expressed by
    5·1 answer
  • Describe what viscoelastic behavior means
    7·1 answer
  • In water and wastewater treatment processes a filtration device may be used to remove water from the sludge formed by a precipit
    10·1 answer
  • An Otto cycle with air as the working fluid has a compression ratio of 8.2. Under cold air standard conditions, what is the ther
    14·1 answer
  • PLEASE HELP
    15·2 answers
  • The Aluminum Electrical Conductor Handbook lists a dc resistance of 0.01558 ohm per 1000 ft at 208C and a 60-Hz resistance of 0.
    11·1 answer
  • Why are plastics known as synthetic materials?​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!