Ask your own question, for FREE!
Computer Science 21 Online
OpenStudy (anonymous):

solve this procedure logic?????

OpenStudy (anonymous):

OpenStudy (anonymous):

the above is the flowchart problem... the actual answer to the problem is given as 11. but can anyone explain how the 11 answer came???

OpenStudy (anonymous):

Wow. Its actually very simple, but it took me a while. The answer lies in the 3 instruction. instead of adding 1 to the number in box 2, (resulting in 8 and the number being more then 4 so the logic ends) its actually telling you to increase the box number to box 3. the number in box 3 is less then 4 (its 2) and so the process repeats. the number in box 1 gets added to the new instruction 2 (box 3) and we get 10. then, the next box is looked at (box 4). that number is not above box 8 (4) either (its 1) so the loop hits again. 10 is now added to the number in box 4, making it 11. Box 5 is greater then the number in box 8 so the function ends, and the number in box 1 is indeed 11. :)

OpenStudy (anonymous):

if that still doesnt make sense to you i can make a flow chart. just let me know :)

OpenStudy (anonymous):

ya i understand a little...... can u provide me still some brief answer......waiting for ur reply

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Breathless: Spooky witch but cute
4 hours ago 3 Replies 0 Medals
Arriyanalol: help
4 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 3 Medals
Jaded012023: Please tell me what you all think of this song
6 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
6 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!