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

under the Compromise of 1850 what were the outcomes of the amended Fugitive Slave Act​
I need this like right now!!Which of the following statements describes the state of the Roman Republic around 88 B.C.A. Rome was enjoying peace and prosperityB
A study showed that the core body temperature of athletes rose about 0.2°C during heavy exercise. Which of the following is a likely explanation for the rise in
Which organism’s DNA will be most similar to the leopard?
Do you think the United States should have retained an isolationist stance
PLEASE RESPOND QUICKLY Point Z is the center of triangle RST. What is the value of X? X=2 X=3 X=5 X=8
Gifts from nature, such as minerals, coal and oil are called___________ capital GDP natural resources currency exchange
What is the answer to this
Please help me soon!!!! 20 POINTS!! Thanks in advance!!!
What is the slope!?