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
Anvisha [2.4K]
3 years ago
5

You recall an algorithm from elementary school for factoring a number N: Divide out all factors of 2, then of 3, then of 4, then

of 5, then of 6, then of 7, etc. Finally, divide out all factors of N (of which there can be at most one). (a) Write pseudo-code for this algorithm (and print the prime factors)
Engineering
1 answer:
Contact [7]3 years ago
4 0

Answer:

let number = 0

while number < 1

  begin

     print "Enter a positive integer: "

     read number

  end

end_while

find and print number's factors:

let prime = TRUE

let currentFactor = 2

let lastFactor = the square root of number truncated

  to an integer value

while currentFactor <= lastFactor

  begin

     if number is evenly divisible by currentFactor

        begin

           print currentFactor

           let number = number / currentFactor

        end

     else

        let currentFactor = currentFactor + 1

     end_if

  end

end_while

print a message if number is prime:

if prime == TRUE

  print "Your number is prime"

end_if

Explanation:

You might be interested in
2. What is an important aspect of the American free enterprise system that encourages people to
rusak2 [61]
Have a positive mindset and attitude
7 0
3 years ago
Read 2 more answers
A double-pane insulated window consists of two 1 cm thick pieces of glass separated by a 1.8 cm layer of air. The window measure
Elanso [62]

Answer:

(b). T = 22.55 ⁰C

(c). q = 557.8 W

Explanation:

we take follow a step by step process to solving this problem.

from the question, we have that

The two glass pieces is separated by a 1.8 cm distance layer of air.

the thickness of glass piece is 1 cm

width = 4 m

the height = 3 m

(a). the sketch of the thermal circuit is uploaded in the picture below.

(b).  the thermal resistance due to the conduction in the first glass plane is given thus;

R₁ = Lg / Kg A ................(1)

given that Kg rep. the thermal conductivity of the glass plane

A = conduction surface area

Lg = Thickness of glass plane4

taking the thermal conductivity of glass plane as Kg = 0.78 w/mk

inputting values into equation (1) we have,

R₁ = [1 (cm) ˣ 1 (m)/100 (cm)] / [(0.78 w/mk)(4m ˣ 3m)]

R₁ = 1.068 ˣ 10 ⁻³ k/w

Being that we have same thermal resistance in the first and second plane,

therefore R₁ = R₃ = 1.068 ˣ 10 ⁻³ k/w

⇒ Also the thermal resistance between air and glass as a result of the conduction by the layer is given thus

R₂ = La/KaA .....................(2)

given Ka = thermal conductivity of air

A = surface area

La = thickness of air

substituting values into the equation we have

R₂ = [1.8 (cm) ˣ 1 (m)/100 (cm)] / [(0.0262 w/mk)(4m ˣ 3m)]

R₂ = 5.73 ˣ 10⁻² k/w

Given the thermal resistance on the outer surface due to convection, we have

R₄ = 1/hA

inputting value gives R₄ = 1 / (12 w/m² ˣ 12m) = 6.94 ˣ 10⁻³k/w

R₄ = 6.94 ˣ 10⁻³k/w

Finally the sum total of thermal resistance = R₁ + R₂ + R₃ + R₄

R-total = 0.0663 kw

From this we can calculate the rate of heat loss

using  q = Ti - To / R-total ..............(3)

given Ti and To is the inside and outside temperature i.e. 27⁰C and -10⁰C

from equation (3),

q = 27- (-10) / 0.0063 = 557.8 W

q = 557.8 W  

⇒ Applying the heat transfer formula for inside surface glass temperature gives;

q = Ti - T₂ / R₃ + R₄

T₂ = Ti - q (R₃ + R₄)

T₂ = 27 - 557.8 (1.068ˣ10⁻³ + 6.94ˣ10⁻³ ) = 22.55°C

T₂ = 22.55°C

cheers i hope this helps

8 0
3 years ago
Air modeled as an ideal gas enters a turbine operating at steady state at 1040 K, 278 kPa and exits at 120 kPa. The mass flow ra
gladu [14]

Answer:

a) T_{2}=837.2K

b) e=91.3 %

Explanation:

A) First, let's write the energy balance:

W=m*(h_{2}-h_{1})\\W=m*Cp*(T_{2}-T_{1})  (The enthalpy of an ideal gas is just function of the temperature, not the pressure).

The Cp of air is: 1.004 \frac{kJ}{kgK} And its specific R constant is 0.287 \frac{kJ}{kgK}.

The only unknown from the energy balance is T_{2}, so it is possible to calculate it. The power must be negative because the work is done by the fluid, so the energy is going out from it.

T_{2}=T_{1}+\frac{W}{mCp}=1040K-\frac{1120kW}{5.5\frac{kg}{s}*1.004\frac{kJ}{kgk}} \\T_{2}=837.2K

B) The isentropic efficiency (e) is defined as:

e=\frac{h_{2}-h_{1}}{h_{2s}-h_{1}}

Where {h_{2s} is the isentropic enthalpy at the exit of the turbine for the isentropic process. The only missing in the last equation is that variable, because h_{2}-h_{1} can be obtained from the energy balance  \frac{W}{m}=h_{2}-h_{1}

h_{2}-h_{1}=\frac{-1120kW}{5.5\frac{kg}{s}}=-203.64\frac{kJ}{kg}

An entropy change for an ideal gas with  constant Cp is given by:

s_{2}-s_{1}=Cpln(\frac{T_{2}}{T_{1}})-Rln(\frac{P_{2}}{P_{1}})

You can review its deduction on van Wylen 6 Edition, section 8.10.

For the isentropic process the equation is:

0=Cpln(\frac{T_{2}}{T_{1}})-Rln(\frac{P_{2}}{P_{1}})\\Rln(\frac{P_{2}}{P_{1}})=Cpln(\frac{T_{2}}{T_{1}})

Applying logarithm properties:

ln((\frac{P_{2}}{P_{1}})^{R} )=ln((\frac{T_{2}}{T_{1}})^{Cp} )\\(\frac{P_{2}}{P_{1}})^{R}=(\frac{T_{2}}{T_{1}})^{Cp}\\(\frac{P_{2}}{P_{1}})^{R/Cp}=(\frac{T_{2}}{T_{1}})\\T_{2}=T_{1}(\frac{P_{2}}{P_{1}})^{R/Cp}

Then,

T_{2}=1040K(\frac{120kPa}{278kPa})^{0.287/1.004}=817.96K

So, now it is possible to calculate h_{2s}-h_{1}:

h_{2s}-h_{1}}=Cp(T_{2s}-T_{1}})=1.004\frac{kJ}{kgK}*(817.96K-1040K)=-222.92\frac{kJ}{kg}

Finally, the efficiency can be calculated:

e=\frac{h_{2}-h_{1}}{h_{2s}-h_{1}}=\frac{-203.64\frac{kJ}{kg}}{-222.92\frac{kJ}{kg}}\\e=0.913=91.3 %

4 0
3 years ago
A heavy ball with a weight of 150 N is hung from the ceiling of a lecture hall on a 4.0-m-long rope. The ball is pulled to one s
shusha [124]

Answer:

The tension in the rope at the lowest point is 270 N

Explanation:

Given;

weight of the ball, W = 150 N

length of the rope, r = 4 m

velocity of the ball, v = 5.6 m/s

When the ball passes through the lowest point, the tension on the rope is the sum of weight of the ball and centripetal force.

T = W + F

Centripetal force, F = mv²/r

where;

m is the mass of the ball

m = W/g

m = 150 / 9.8 = 15.306 kg

Centripetal force, F = mv²/r

F = (15.306 x 5.6²)/4

F = 120 N

T = W + F

T = 150 + 120

T = 270 N

Therefore, the tension in the rope at the lowest point is 270 N

6 0
3 years ago
Engineering controls are the physical changes that employers make to the work environment or to equipment that make it safer to
____ [38]

Answer:

Engineering Controls. The best engineering controls to prevent heat-related illness is to make the work environment cooler and to reduce manual workload with mechanization. A variety of engineering controls can reduce workers' exposure to heat: Air conditioning, Increased general ventilation , Cooling fans , Local exhaust ventilation at points of high heat production or moisture, Reflective shields to redirect radiant heat , Insulation of hot surfaces Elimination of steam leaks , Cooled seats or benches for rest breaks , Use of mechanical equipment to reduce manual work, Misting fans that produce a spray of fine water droplets.

Hope this helped you!

Explanation:

5 0
3 years ago
Other questions:
  • Explain what entropy is in relation to the second law of thermodynamics?
    9·1 answer
  • What is Pressure measured from absolute zero pressure called?
    14·1 answer
  • In highways the far left lane is usually the _____
    11·2 answers
  • Air at 20 C and 1 atm flows over a flat plate at 35 m/s. The plate is 75 cm long and is maintained at 60 с. Assuming unit depth
    8·1 answer
  • A hydraulic cylinder has a 125-mm diameter piston with hydraulic fluid inside the cylinder and an ambient pressure of 1 bar. Ass
    8·1 answer
  • An inverting amplifier with +11 V supply voltages normally has a sinusoidal output of 10 Vpp. When checking the circuit with an
    11·1 answer
  • Shear modulus is analogous to what material property that is determined in tensile testing? (a)- Percent reduction of area (b) Y
    11·1 answer
  • Researchers at the University of__________modified the iPhone to allow it to create medical images.
    9·2 answers
  • (100 POINTS) {BRIANLIEST} PLEASE HELP ME
    5·1 answer
  • Ronny wants to calculate the mechanical advantage. He needs to determine the length of the effort arm and the length of the load
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!