carethegymnast1538 carethegymnast1538
  • 25-07-2020
  • Computers and Technology
contestada

What will be displayed if code corresponding to the following pseudocode is executed? Set Number = 4 Repeat Write 2 * Number Set Number = Number + 2 Until Number = 8

Respuesta :

thepingu
thepingu thepingu
  • 25-07-2020

Answer:

8

12

Explanation:

I made the code a bit easier to understand then worked out how it would go. Here's what I did.

number = 4

repeat until number = 8:

   write 2 * number

   number = number + 2

Following this itenary, we have, the system first writes "8" as it multipled 4 by 2. Number is now equal to 6.

Next repetition, the system writes "12" as it multipled 6 by 2. Now, number = 8. The proccess now stops as number is now equal to 8.

Answer Link

Otras preguntas

Which of the following items would most likely be found on a culture-fair IQ test? a. General information items b. Picture completion items c. Sentence completi
Please answer this correctly
NEED HELP ASAP PLEASE ILL MRK BRAINLIEST!!!!!!!!!!!!!!!! Using the wall map, identify which of these is a U.S. territory. A. Puerto Rico B. Kingston C. Havana D
how does adhesion cohesion and capillary action enable water to go from the roots to the top of a tall tree
Solve for the value of x
The earliest known settlement on the Indian subcontinent is
Please help me❗️ Any answers without proof will be reported
A copper block weighs 1,142 g. Its dimensions are 8 cm by 4 cm by 4 cm. To the nearest hundredth, what is the density of copper?
Where would (3.5,11) be plotted on the graph ? Please answer this !!!
4’1” - 1’ 10” whats is