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
Which sentence is an example of formal language?
mote1985 [20]
D sounds more formal than the rest.
6 0
3 years ago
Stirrups are used in a concrete beam:_______
VMariaS [17]
The answer is E to increase the shear strength of the beam beyond that provided by the concrete
5 0
3 years ago
A state of stress that occurs at a point on the free surface of the of a solid body is = 50 MPa σ x , =10 MPa σ y , and = −15 MP
posledela

Answer:

A) 5 MPa , 55 MPa

B) maximum stress = 55 MPa,  maximum shear stress = 25 MPa

Explanation:

using the given Data

free surface of a solid body

α_{x} = 50 MPa,    α_{y} = 10 MPa , t_{xy} = -15 MPa

attached below is the detailed solution to the question

7 0
4 years ago
According to the rules of dimension how should written notes appear
Arturiano [62]

Explanation:

Leaders for notes should be straight, not curved, and point to the center of circular  views of holes wherever possible. Leaders should slope at 45°, 30° or 60° with  horizontal but may be made at any convenient angle except vertical or horizontal.

7 0
3 years ago
A five legged intersection has safety issues. in 2018, the number of crashes reported was 48 and the average 24 hour volume ente
sashaice [31]

Answer:

The crash rate is 22 vehicles per 1 million vehicles

Explanation:

In this question, we are asked to determine the crash rate per million vehicles.

Crash rate is calculated using average crash frequency.

The crash rates are calculated based on the number of crashes per million vehicle miles travelled in a year.

Mathematically;

crash rate = (48 * 1,000,000)/ [(980 + 1560 + 1230 + 900 + 1435)* 365]

= 48,000,000/(6105*365)

= 21.54 approximately 22

4 0
4 years ago
Other questions:
  • A fluid of density 1400 kg/m^3 and viscosity of 0.9 kg/m.s flows through an 80 mm diameter pipe with a velocity of 5 m/s. What t
    6·1 answer
  • At sea level, the mass of a watermelon is 5 kg in Sl units. Then the weight of it in English units is: _______.
    11·2 answers
  • Type the correct answer in the box. Spell all words correctly.
    6·1 answer
  • The ________ is the part of the drill press that holds and rotates the cutting tool.
    7·2 answers
  • The amount of time an activity can be delayed and yet not delay the project is termed:_________
    14·1 answer
  • What are the de Broglie frequencies and wavelengths of (a) an electron accelerated to 50 eV (b) a proton accelerated to 100 eV
    10·1 answer
  • A square power screw has a mean diameter of 30 mm and a pitch of 4 mm with single thread. The collar diameter can be assumed to
    14·1 answer
  • 2.(10 pts)A proposed engine cycle employs an ideal gas and consists of the following sequence of transformations; a) Isothermal
    12·1 answer
  • Select three mechanical processes used in the manufacturing phase of engineering.
    11·2 answers
  • Why is it important to push a dolly instead of pulling it?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!