Solved

What Will Be Printed When the Following Algorithm Is Processed

Question 16

Multiple Choice

What will be printed when the following algorithm is processed?
COUNTER = 0
DISTRIBUTION = 500
WHILE DISTRIBUTION > 200 AND COUNTER < 5
GIVEAWAY = DISTRIBUTION * .5
PRINT GIVEAWAY
DISTRIBUTION = DISTRIBUTION - GIVEAWAY
COUNTER = COUNTER + 1
WHILE-END


A) 250
B) 250,125
C) 150,125,62.5
D) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents