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
Kisachek [45]
3 years ago
15

Given int variables k and total that have already been declared, use a do...while loop to compute the sum of the squares of the

first 50 counting numbers, and store this value in total. Thus your code should put 1*1 + 2*2 + 3*3 +... + 49*49 + 50*50 into total. Use no variables other than k and total.
Engineering
1 answer:
Otrada [13]3 years ago
5 0

Answer:

k-1000

Explanation:

You might be interested in
These tadpoles are confined to a limited environment. What are they all competing for in that environment
Dovator [93]

Answer: to the earth air

Explanation:

5 0
3 years ago
Read 2 more answers
a metal rod 24mm diameter and 2m long is subjected to an axial pull of 40 kN. If the rod is 0.5mm, then find the stress-induced
ozzi

Answer:

i dont know but i will take the points tho hahah

Explanation:

8 0
2 years ago
A gasoline engine has a piston/cylinder with 0.1 kg air at 4 MPa, 1527◦C after combustion, and this is expanded in a polytropic
Roman55 [17]

Answer:

The expansion work is 71.24 kJ and heat transfer is -16.89 kJ

Explanation:

From ideal gas law,

Initial volume (V1) = nRT/P

n is the number of moles of air in the cylinder = mass/MW = 0.1/29 = 0.00345 kgmol

R is gas constant = 8314.34 J/kgmol.K

T is initial temperature = 1527 °C = 1527+273 = 1800 K

P is initial pressure = 4 MPa = 4×10^6 Pa

V1 = 0.00345×8314.34×1800/(4×10^6) = 0.013 m^3

V2 = 10×V1 = 10×0.013 = 0.13 m^3

The process is a polytropic expansion process

polytropic exponent (n) = 1.5

P2 = P1(V1/V2)^n = 4×10^6(0.013/0.13)^1.5 = 1.26×10^5 Pa

Expansion work = (P1V1 - P2V2) ÷ (n - 1) = (4×10^6 × 0.013 - 1.26×10^5 × 0.13) ÷ (1.5 - 1) = 35620 ÷ 0.5 = 71240 J = 71240/1000 = 71.24 kJ

Heat transfer = change in internal energy + expansion work

change in internal energy (∆U) = Cv(T2 - T1)

T2 = PV/nR = 1.26×10^5 × 0.13/0.00345×8314.34 = 571 K

Cv = 20.785 kJ/kgmol.K

∆U = 20.785(571 - 1800) = -25544.765 kJ/kgmol × 0.00345 kgmol = -88.13 kJ

Heat transfer = -88.13 + 71.24 = -16.89 kJ

5 0
3 years ago
Water flows steadily through the pipe as shown below, such that the pressure at section (1) and at section (2) are 300 kPa and 1
steposvetlana [31]

Answer:

The velocity at section is approximately 42.2 m/s

Explanation:

For the water flowing through the pipe, we have;

The pressure at section (1), P₁ = 300 kPa

The pressure at section (2), P₂ = 100 kPa

The diameter at section (1), D₁ = 0.1 m

The height of section (1) above section (2), D₂ = 50 m

The velocity at section (1), v₁ = 20 m/s

Let 'v₂' represent the velocity at section (2)

According to Bernoulli's equation, we have;

z_1 + \dfrac{P_1}{\rho \cdot g} + \dfrac{v^2_1}{2 \cdot g} = z_2 + \dfrac{P_2}{\rho \cdot g} + \dfrac{v^2_2}{2 \cdot g}

Where;

ρ = The density of water = 997 kg/m³

g = The acceleration due to gravity = 9.8 m/s²

z₁ = 50 m

z₂ = The reference = 0 m

By plugging in the values, we have;

50 \, m + \dfrac{300 \ kPa}{997 \, kg/m^3 \times 9.8 \, m/s^2} + \dfrac{(20 \, m/s)^2}{2 \times 9.8 \, m/s^2} = \dfrac{100 \ kPa}{997 \, kg/m^3 \times 9.8 \, m/s^2} + \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}50 m + 30.704358 m + 20.4081633 m = 10.234786 m + \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

50 m + 30.704358 m + 20.4081633 m - 10.234786 m = \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

90.8777353 m = \dfrac{v_2^2}{2 \times 9.8 \, m/s^2}

v₂² = 2 × 9.8 m/s² × 90.8777353 m

v₂² = 1,781.20361 m²/s²

v₂ = √(1,781.20361 m²/s²) ≈ 42.204308 m/s

The velocity at section (2), v₂ ≈ 42.2 m/s

3 0
2 years ago
A quantity of water within a piston-cylinder assembly executes a Carnot power cycle. During isothermal expansion, the water is h
Harman [31]

Answer:

  Answer with Explanation is in the following attachments.

                     

Explanation:

7 0
3 years ago
Other questions:
  • System grounding on a power system means electrically connecting the __?__ of every wye-connected transformer or generator to ea
    12·1 answer
  • A piston-cylinder device contains 0.8 kg of steam at 300°C and 1 MPa. Steam is cooled at constant pressure until one-half of the
    9·1 answer
  • A car is traveling at 36 km/h on an acceleration lane to a freeway. What acceleration is required to obtain a speed of 72 km/h i
    12·1 answer
  • Why would Chris most likely conclude that he should seek help? A. He feels in control of his emotions even though people annoy h
    15·2 answers
  • (a) Sabbir usually (sit)______ in the front bench.
    13·1 answer
  • The typical Canadian worker is able to produce 100 board feet (a unit of measure) of lumber or 1000 light bulbs per year. The wo
    12·1 answer
  • a poorly tighten terminal is often the cause of a/an ? a) open circuit b) circuit breaker interrupt c)short circuit d) ground fa
    10·1 answer
  • Consider a circuit element, with terminals a and b, that has vab= -12V and iab= 3A. Over a period of 2 seconds, how much charge
    8·1 answer
  • What are the partial products of 2.3 x 2.6
    15·1 answer
  • Why is personal development necessary based activity success life and career​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!