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
An aluminum metal rod is heated to 300oC and, upon equilibration at this temperature, it features a diameter of 25 mm. If a tens
Natalka [10]

Answer:

It will results in mechanical hardening.

5 0
3 years ago
Read 2 more answers
Here, we want to become proficient at changing units so that we can perform calculations as needed. The basic heat transfer equa
netineya [11]

Answer:

9500 kJ; 9000 Btu

Explanation:

Data:

m = 100 lb

T₁ = 25 °C

T₂ = 75 °C

Calculations:

1. Energy in kilojoules

ΔT = 75 °C - 25 °C = 50 °C  = 50 K

m = \text{100 lb} \times \dfrac{\text{1 kg}}{\text{2.205 lb}} \times \dfrac{\text{1000 g}}{\text{1 kg}}= 4.54 \times 10^{4}\text{ g}\\\\\begin{array}{rcl}q & = & mC_{\text{p}}\Delta T\\& = & 4.54 \times 10^{4}\text{ g} \times 4.18 \text{ J$\cdot$K$^{-1}$g$^{-1}$} \times 50 \text{ K}\\ & = & 9.5 \times 10^{6}\text{ J}\\ & = & \textbf{9500 kJ}\\\end{array}

2. Energy in British thermal units

\text{Energy} = \text{9500 kJ} \times \dfrac{\text{1 Btu}}{\text{1.055 kJ}} = \text{9000 Btu}

7 0
3 years ago
All of the dimensions on an aircraft drawing are_________<br> to the bottom of the drawing.
Jet001 [13]
All of the dimensions on an aircraft drawing are _________ to the bottom of the drawing


Answer: parallel
7 0
2 years ago
In the fully developed region of flow in a circular pipe, does the velocity profile change in the flow direction?
taurus [48]

Answer:

<em>No, the velocity profile does not change in the flow direction.</em>

Explanation:

In a fluid flow in a circular pipe, the boundary layer thickness increases in the direction of flow, until it reaches the center of the pipe, and fill the whole pipe. If the density, and other properties of the fluid does not change either by heating or cooling of the pipe, <em>then the velocity profile downstream becomes fully developed, and constant, and does not change in the direction of flow.</em>

3 0
3 years ago
Which of the following requires formwork?
vekshin1

Answer:

D

Explanation:

Masonry uses stone work, making a stone wall requires perfect masonry.

3 0
3 years ago
Other questions:
  • Consider a single crystal of some hypothetical metal that has the BCC crystal structure and is oriented such that a tensile stre
    10·1 answer
  • You have designed a bone plate that is manufactured via rolling under cold working conditions, and tests show good biocompatibil
    14·1 answer
  • Air at 27°C and a velocity of 5 m/s passes over the small region As (20 mm × 20 mm) on a large surface, which is maintained at T
    6·1 answer
  • A heat recovery system​ (HRS) is used to conserve heat from the surroundings and supply it to the Mars Rover. The HRS fluid loop
    12·1 answer
  • What does the current in a semi-conductor is produced by?
    15·2 answers
  • During the pre-drive check, you'll want to observe the car from the _______.
    9·1 answer
  • An apple, potato, and onion all taste the same if you eat them with your nose plugged
    8·2 answers
  • Analyze the example of this band saw wheel and axle. The diameter of the wheel is 14 inches. The diameter of the axle that drive
    9·1 answer
  • Why is personal development necessary based activity success life and career​
    11·1 answer
  • Who made the frist ever car
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!