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
Technician A says that the definition of torque is how far the crankshaft twists in degrees.Technician B says that torque can re
leonid [27]
Technician B is correct because torque is a force of an object.
6 0
1 year ago
True/False
agasfer [191]

Answer: This is true.

Hope this helps!  :)

Explanation:

4 0
3 years ago
A genetically engineered hormone,___________, can treat Mary’s child for growth hormone deficiencies by stimulating body growth
aleksandrvk [35]
Recombinant human growth hormone (rHGH)
4 0
3 years ago
A BOD test is to be run on a sample of wastewater that has a five-day BOD of 230 mg/L. If the initial DO of a mix of distilled w
Alexxandr [17]

Answer:

Distribution factor P = =38.33

V = 7.826 ml

Explanation:

given details:

BOD =230 mg/l

DO inital = 8.0mg/l

DO final = 2.0mg/l

we know

BOD = [DO inital -DO final] * distribution factor

230 = [8 - 2] D.F

Distribution factor P = \frac{230}{6}

Distribution factor P = =38.33

THE RANGE OF WASTE WATER VOLUME IN 300 ml bottle is

distribution factor = \frac{300}{V}

V = \frac{300}{38.33}

V = 7.826 ml

6 0
3 years ago
9. A piece of Cherry wood is 5/4 x 4" X 4'<br> What is the length in inches?
Firlakuza [10]

Answer:

48 inches

Explanation:

the 4' means 4 feet. the " means inches but the ' means feet. the longest measurment means its the length, so 4 feet converted to inches are 48 inches, giving you your answer. i hope this helps :D

8 0
3 years ago
Other questions:
  • A 20.0 µF capacitor is charged to a potential difference of 800 V. The terminals of the charged capacitor are then connected to
    12·1 answer
  • Which graph indicates that one of the runners started 10 meters ahead of the others
    15·1 answer
  • How much heat (Btu) is prod uced by a 150-W light bulb that is on for 20-hours?
    14·1 answer
  • As the impurity concentration in solid solution of a metal is increased, the tensile strength:________.a) decreasesb) increasesc
    9·1 answer
  • Water is to be pumped through a 100-mile of the Rub’al Khali desert in a smooth concrete pipe (=0.005ft) at a flow rate of 5 ft
    8·1 answer
  • A robot with artificial intelligence would best be suited for
    11·1 answer
  • In the 1960s through 1980s, a medical filter manufacturer in Ann Arbor discharged 1,4-dioxane (an industrial solvent) directly i
    15·2 answers
  • What’s the population in the world and why does it keep increasing in bad areas.
    8·1 answer
  • Which word is used to describe Sweden,Normay,and Denmark
    6·1 answer
  • Dimension these please.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!