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
Water is flowing into the top of an open cylindrical tank (which has a diameter D) at a volume flow rate of Qi and the water flo
deff fn [24]

Answer:

Z = 3 + 0.23t

The water level is rising

Explanation:

Please see attachment for the equation

8 0
3 years ago
Read 2 more answers
Do plastic materials have high or low ductility? Explain why.​
Flura [38]
The impact behavior of plastic materials is strongly dependent upon the temperature. At high temperatures, materials are more ductile and have high impact toughness. At low temperatures, some plastics that would be ductile at room temperature become brittle.
3 0
2 years ago
10. An engineer is designing a total hip implant. She intends to make the femoral stem out of titanium because it forms a good i
creativ13 [48]

Answer:

Yes. She should be worried about corrosion. The 18-8 stainless exhibits intergranular corrosion due to high (0.08%) carbon content and gross pitting due to low molybdenum content.

Explanation: lol

8 0
3 years ago
A sign erected on uneven ground is guyed by cables EF and EG. If the force exerted by cable EF at E is 46 lb, determine the mome
Vikki [24]

Answer:

M_AD = 1359.17 lb-in

Explanation:

Given:

- T_ef = 46 lb

Find:

- Moment of that force T_ef about the line joining points A and D.

Solution:

- Find the position of point E:

                           mag(BC) = sqrt ( 48^2 + 36^2) = 60 in

                           BE / BC = 45 / 60 = 0.75

Hence,                E = < 0.75*48 , 96 , 36*0.75> = < 36 , 96 , 27 > in

- Find unit vector EF:

                           mag(EF) = sqrt ( (21-36)^2 + (96+14)^2 + (57-27)^2 ) = 115 in

                           vec(EF) = < -15 , -110 , 30 >

                           unit(EF) = (1/115) * < -15 , -110 , 30 >

- Tension            T_EF = (46/115) * < -15 , -110 , 30 > = < -6 , -44 , 12 > lb

- Find unit vector AD:

                           mag(AD) = sqrt ( (48)^2 + (-12)^2 + (36)^2 ) = 12*sqrt(26) in

                           vec(AD) = < 48 , -12 , 36 >

                           unit(AD) = (1/12*sqrt(26)) * < 48 , -12 , 36 >

                           unit (AD) = <0.7845 , -0.19612 , 0.58835 >

Next:

                           M_AD = unit(AD) . ( E x T_EF)

                           M_d = \left[\begin{array}{ccc}0.7845&-0.19612&0.58835\\36&96&27\\-6&-44&12\end{array}\right]

                            M_AD = 1835.73 + 116.49528 - 593.0568

                            M_AD = 1359.17 lb-in

3 0
3 years ago
A small lake with volume of 160,000 m^3 receives agricultural drainage waters that contain 150 mg / L total dissolved solids (TD
Stels [109]

Answer:

Explanation:

Given that : -

The desirable limit is 500 mg / l , but

allowable upto 2000 mg / l.

The take volume is V = 160.000 m3

V = 160 , 000 x 103 l

The crainage gives 150 mg / l and lake has initialy 100 mg / l

Code of tpr frpm drawn = 150 x 60, 000 x 1000

Ci = 9000 kg / gr

Cl = 100 x 160,000 x 1000

Cl = 16, 000 kg

Since allowable limit = 2000 mg / l

Cn = ( 2000 x 160, 00 x 1000 )

= 320, 000 kg

so, each year the rate increases, by 9000 kg / yr

Read level = ( 320, 000 - 16,000 )

Li = 304, 000 kg

Tr=<u>304,000</u>

      900

=33.77

5 0
3 years ago
Read 2 more answers
Other questions:
  • Describe three advantages and three disadvantages of JIT?
    12·1 answer
  • In electric heaters, electrical energy is converted to potential energy. a)-True b)-false?
    11·1 answer
  • 10. When an adhesion bond is made by melting a filler metal and allowing it to spread into the pores of the
    7·1 answer
  • james wants to qualify for icp are and licensure. Which degree would be required in order to qualify for a two year master of ar
    15·1 answer
  • Which is the correct definition of schematic? a type of computer program that project managers use to track engineers on a proje
    13·1 answer
  • Dalton needs to prepare a close-out report for his project. Which part of the close-out report would describe
    6·1 answer
  • Why do need engineer and architect​
    7·1 answer
  • 1: asha started abusness with 30.000
    8·1 answer
  • Determine the initial void ratio, the relative density and the unit weight (in pounds per cubic foot) of the specimens for each
    6·1 answer
  • Your class is using engineering principles to improve the design of football helmets to prevent brain injury. your teacher divid
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!