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
What are the benefits of using the engineering design process? combining scientific knowledge and creativity in a rigid and stru
Trava [24]

Answer:

combining scientific knowledge, careful reasoning, and artistic invention in a flexible approach to problem-solving

Explanation:

7 0
3 years ago
The Role of Fuel Cells in Renewable Energy Solutions
gogolik [260]

Answer:

chemical energy directly

4 0
2 years ago
What are the ropes of secretaries and treasures in a meeting​
Nastasia [14]

Answer:

To prepare and issue notices and agendas of all meetings in consultation with the chairman, and to ensure that any background papers are available well before the meeting. To attend and take the minutes of every committee meeting. To circulate minutes to all committee members, and to conduct the correspondence

Explanation:

I think you want to say roles.

4 0
3 years ago
Q9. A cylindrical specimen of a metal alloy 54.8 mm long and 10.8 mm in diameter is stressed in tension. A true stress of 365 MP
wolverine [178]

Answer:

σ = 391.2 MPa

Explanation:

The relation between true stress and true strain is given as:

σ = k εⁿ

where,

σ = true stress = 365 MPa

k = constant

ε = true strain = Change in Length/Original Length

ε = (61.8 - 54.8)/54.8 = 0.128

n = strain hardening exponent = 0.2

Therefore,

365 MPa = K (0.128)^0.2

K = 365 MPa/(0.128)^0.2

k = 550.62 MPa

Now, we have the following data:

σ = true stress = ?

k = constant = 550.62 MPa

ε = true strain = Change in Length/Original Length

ε = (64.7 - 54.8)/54.8 = 0.181

n = strain hardening exponent = 0.2

Therefore,

σ = (550.62 MPa)(0.181)^0.2

<u>σ = 391.2 MPa</u>

7 0
3 years ago
Which of the following sentences uses the active voice
MrRa [10]

Answer: Last week, Nate and I counted all the inventory.

Explanation: all other choices are passive voices

this sentence follows a clear subject + verb + object construct that's why it is an active voice. In fact, sentences constructed in the active voice add impact to your writing. but on the other hand With passive voice, the subject is acted upon by the verb.

Ape x

7 0
3 years ago
Other questions:
  • Steam at 150 bars and 600°C passes through process equipment and emerges at 100 bars and 700°C. There is no flow of work into or
    8·1 answer
  • Show the ERD with relational notation with crowfoot. Your ERD must show PK, FKs, min and max cardinality, and correct line types
    13·1 answer
  • Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is pai
    11·1 answer
  • A family member who hasn’t worked with computers before has decided to change jobs. You’ve been asked to explain some of the bas
    6·2 answers
  • Plz give solutions..... ​
    6·1 answer
  • What are the functions of the peripheral nervous system
    6·2 answers
  • You find an unnamed fluid in the lab we will call Fluid A. Fluid A has a specific gravity of 1.65 and a dynamic viscosity of 210
    9·1 answer
  • A full-adder is a combinational circuit that forms the arithmetic sum of three input bits.
    9·1 answer
  • Transcript
    7·1 answer
  • 4.6. What is the maximum peak output voltage and current if the supply voltages are changed to +15 V and -15 V.​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!